From ec68cc64246122e7e5f61a6747911abde950f371 Mon Sep 17 00:00:00 2001 From: Martin d'Allens Date: Sun, 19 Nov 2023 19:33:57 +0100 Subject: [PATCH] chore: make sure error exit codes of tests are returned Signed-off-by: Martin d'Allens --- package.json | 2 +- test/setup.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 23effb3..2294f7e 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "bin": "src/main.js", "type": "module", "scripts": { - "test": "mocha test/**.js --timeout 10000", + "test": "mocha test/**.js --timeout 10000 --exit", "lint:yml": "yamllint --schema=CORE_SCHEMA *.{yml,yaml}", "lint:js": "npm run lint:eslint && npm run lint:prettier", "lint:js:fix": "npm run lint:eslint:fix && npm run lint:prettier:fix", diff --git a/test/setup.js b/test/setup.js index bae30ea..34fba67 100644 --- a/test/setup.js +++ b/test/setup.js @@ -24,6 +24,5 @@ after(function () { console.log('global teardown'); global.server.close(function () { console.log('Done'); - process.exit(); }); });