Move mocha --exit to config file

This commit is contained in:
Franck Royer 2021-05-04 15:07:32 +10:00
parent 6d699f89f4
commit e1da348fda
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
{
"extension": ["ts"],
"spec": "src/**/*.spec.ts",
"require": "ts-node/register"
"require": "ts-node/register",
"exit": true
}

View File

@ -24,7 +24,7 @@
"test:lint": "eslint src --ext .ts",
"test:prettier": "prettier \"src/**/*.ts\" \"./*.json\" --list-different",
"test:spelling": "cspell \"{README.md,.github/*.md,src/**/*.ts}\"",
"test:unit": "nyc --silent mocha --exit # TODO: Remove `--exit` and fix hanging processes",
"test:unit": "nyc --silent mocha",
"proto": "run-s proto:*",
"proto:lint": "buf lint",
"proto:build": "buf generate",