From e1da348fda3d538b1f64fd1a76fbd0960b867f82 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Tue, 4 May 2021 15:07:32 +1000 Subject: [PATCH] Move mocha --exit to config file --- .mocharc.json | 3 ++- package.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.mocharc.json b/.mocharc.json index 3495e1e777..b65763d3ba 100644 --- a/.mocharc.json +++ b/.mocharc.json @@ -1,5 +1,6 @@ { "extension": ["ts"], "spec": "src/**/*.spec.ts", - "require": "ts-node/register" + "require": "ts-node/register", + "exit": true } diff --git a/package.json b/package.json index 09b094a560..10bd014590 100644 --- a/package.json +++ b/package.json @@ -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",