From 18cef96a8054bf38e8576b0aeffc4e80bed0d373 Mon Sep 17 00:00:00 2001 From: loic Date: Thu, 16 May 2019 11:32:30 +0200 Subject: [PATCH] Add --exit flag to mocha command line to force exit. Since v4 mocha doesn't force-exit if a process or a socket is still running. https://github.com/mochajs/mocha/issues/3044 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fa35e39..d448337 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "build": "node node_modules/grunt/bin/grunt", "start": "node src/server.js", - "test": "mocha test/**/*.test.js", + "test": "mocha --exit test/**/*.test.js", "release": "true" }, "repository": {