Skip to content

Commit

Permalink
Do not check mocha exit code on watch
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Scholtes committed May 19, 2019
1 parent 03049f6 commit b9f42a8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions test/integration/options/watch.spec.js
Expand Up @@ -144,16 +144,11 @@ describe('--watch', function() {
*
* Returns child process and a promise for the test results. The test results
* are an array of JSON objects generated by the JSON reporter.
*
* Checks that the exit code of the mocha command is 130, i.e. mocha was killed
* by SIGINT.
*/
function runMochaJSONWatchAsync(args, spawnOpts) {
args = [...args, '--watch'];
const [mocha, mochaDone] = runMochaJSONRawAsync(args, spawnOpts);
const testResults = mochaDone.then(data => {
expect(data.code, 'to be', sigintExitCode);

const testResults = data.output
// eslint-disable-next-line no-control-regex
.replace(/\u001b\[\?25./g, '')
Expand Down

0 comments on commit b9f42a8

Please sign in to comment.