Files
pmg/test/e2e.sh
T

16 lines
351 B
Bash
Raw Normal View History

2025-05-17 17:11:58 +05:30
#!/bin/bash
set -e
2025-05-17 19:14:02 +05:30
scriptDir=$(dirname "$0")
2025-05-17 19:13:26 +05:30
pmg=$scriptDir/../bin/pmg
2025-05-17 17:11:58 +05:30
echo "Running e2e tests..."
## All these should be successful
2025-05-17 21:17:50 +05:30
$pmg --debug --dry-run npm install express
$pmg --debug --dry-run npm install express
$pmg --debug --dry-run pnpm add express
2025-05-17 17:11:58 +05:30
## All these should fail
2025-05-17 21:17:50 +05:30
$pmg --debug --dry-run npm install nyc-config@10.0.0 || exit 1