From d24afc3381c8483ab295d68c46755fc16bb0e884 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kol=C3=A1rik?= Date: Sat, 14 Dec 2024 17:51:49 +0100 Subject: [PATCH] fix: use correct exit code in e2e tests --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bbc2593..c97cbc0 100644 --- a/package.json +++ b/package.json @@ -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"