chore: make sure error exit codes of tests are returned

Signed-off-by: Martin d'Allens <martin.dallens@liberty-rider.com>
This commit is contained in:
Martin d'Allens 2023-11-19 19:33:57 +01:00 committed by Andrew Calcutt
parent cef150431b
commit ec68cc6424
2 changed files with 1 additions and 2 deletions

View file

@ -6,7 +6,7 @@
"bin": "src/main.js", "bin": "src/main.js",
"type": "module", "type": "module",
"scripts": { "scripts": {
"test": "mocha test/**.js --timeout 10000", "test": "mocha test/**.js --timeout 10000 --exit",
"lint:yml": "yamllint --schema=CORE_SCHEMA *.{yml,yaml}", "lint:yml": "yamllint --schema=CORE_SCHEMA *.{yml,yaml}",
"lint:js": "npm run lint:eslint && npm run lint:prettier", "lint:js": "npm run lint:eslint && npm run lint:prettier",
"lint:js:fix": "npm run lint:eslint:fix && npm run lint:prettier:fix", "lint:js:fix": "npm run lint:eslint:fix && npm run lint:prettier:fix",

View file

@ -24,6 +24,5 @@ after(function () {
console.log('global teardown'); console.log('global teardown');
global.server.close(function () { global.server.close(function () {
console.log('Done'); console.log('Done');
process.exit();
}); });
}); });