test: Add E2E test

This commit is contained in:
abhisek
2025-05-17 17:11:58 +05:30
parent 3d55ef079c
commit 372c491c07
2 changed files with 50 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/bash
set -e
scriptDir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
if ! command -v pmg &> /dev/null; then
alias pmg="$scriptDir/../bin/pmg"
fi
echo "Running e2e tests..."
## All these should be successful
pmg npm install express --dry-run
pmg --dry-run npm install express
pmg --dry-run pnpm add express
## All these should fail
pmg --dry-run npm install nyc-config@10.0.0