Skip to content

Commit

Permalink
fix: use correct exit code in e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinKolarik committed Dec 14, 2024
1 parent e191208 commit d24afc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"test:e2e": "npm run test:e2e:cases && npm run test:e2e:docker && npm run test:e2e:run",
"test:e2e:cases": "git clone https://github.com/jsdelivr/globalping.git test/e2e/globalping; cd test/e2e/globalping && git add . && git reset --hard && git pull --force && npm install; cd ../../../; for f in config/e2e-api-*; do cp \"$f\" \"test/e2e/globalping/config/${f#config/e2e-api-}\"; done;",
"test:e2e:docker": "docker build -t globalping-probe-e2e . && docker build --build-arg BUILDKIT_CONTEXT_KEEP_GIT_DIR=1 -t globalping-api-e2e test/e2e/globalping",
"test:e2e:run": "cd test/e2e/globalping; TS_NODE_TRANSPILE_ONLY=true NODE_ENV=test mocha --config ./.mocharc.e2e.cjs; cd ../../../"
"test:e2e:run": "cd test/e2e/globalping; TS_NODE_TRANSPILE_ONLY=true NODE_ENV=test mocha --config ./.mocharc.e2e.cjs || E=$?; cd ../../../; exit $E;"
},
"lint-staged": {
"*.{cjs,js,json,ts}": "eslint --cache --fix"
Expand Down

0 comments on commit d24afc3

Please sign in to comment.