mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
16 lines
380 B
Bash
16 lines
380 B
Bash
#!/bin/bash
|
|||
|
|
|
||
|
|
set -e
|
||
|
|
|
||
|
|
scriptDir=$(dirname "$0")
|
||
|
|
pmg=$scriptDir/../bin/pmg
|
||
|
|
|
||
|
|
echo "Running e2e tests..."
|
||
|
|
|
||
|
|
## All these should be successful
|
||
|
|
$pmg --debug --dry-run npm install express
|
||
|
|
$pmg --debug --dry-run npm install express
|
||
|
|
$pmg --debug --dry-run pnpm add express
|
||
|
|
|
||
|
|
## All these should fail
|
||
|
|
! $pmg --debug --dry-run npm install nyc-config@10.0.0 || echo "Command failed as expected"
|