Skip to content
This repository has been archived by the owner on Dec 5, 2018. It is now read-only.

Commit

Permalink
Fixes #3 - Marko server tests do not exit properly using Mocha 4.
Browse files Browse the repository at this point in the history
  • Loading branch information
austinkelleher committed Dec 20, 2017
1 parent 729db3c commit 0333b8b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/test/util/server-tests-runner/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ exports.run = function(allTests, options) {
}
}

// Fixes https://github.com/marko-js/marko-util/issues/3. In Mocha 4, the
// process does not force exit by default without this flag.
spawnArgs.push('--exit');

return spawn(mochaBin, spawnArgs, {
cwd: dir,
env,
Expand Down

0 comments on commit 0333b8b

Please sign in to comment.