Skip to content

Commit

Permalink
Only skip exitcode tests on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Scholtes committed May 20, 2019
1 parent b9f42a8 commit 97de23f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/integration/options/watch.spec.js
Expand Up @@ -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-'));
Expand All @@ -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'
Expand Down

0 comments on commit 97de23f

Please sign in to comment.