diff --git a/test/integration/options/watch.spec.js b/test/integration/options/watch.spec.js index 509a9f4b40..6333445cad 100644 --- a/test/integration/options/watch.spec.js +++ b/test/integration/options/watch.spec.js @@ -13,13 +13,7 @@ describe('--watch', function() { this.timeout(10 * 1000); this.slow(3000); - before(function() { - // Feature works but SIMULATING the signal (ctrl+c) via child process - // does not work due to lack of POSIX signal compliance on Windows. - if (process.platform === 'win32') { - this.skip(); - } - }); + before(function() {}); beforeEach(function() { this.tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'mocha-')); @@ -37,6 +31,12 @@ describe('--watch', function() { }); it('should show the cursor and signal correct exit code, when watch process is terminated', function() { + // Feature works but SIMULATING the signal (ctrl+c) via child process + // does not work due to lack of POSIX signal compliance on Windows. + if (process.platform === 'win32') { + this.skip(); + } + const [mocha, resultPromise] = runMochaJSONRawAsync([ helpers.DEFAULT_FIXTURE, '--watch'