Skip to content

Commit

Permalink
test: add todo test
Browse files Browse the repository at this point in the history
  • Loading branch information
pmarchini committed Sep 15, 2024
1 parent dbb8292 commit 0eab852
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions test/parallel/test-runner-watch-mode.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,13 @@ describe('test runner watch mode', () => {
await testWatch({ fileToUpdate: 'test.js', action: 'delete', isolation });
});

if (isolation !== 'none') {
// This test is failing if isolation is set to none
it('should run new tests when a new file is created in the watched directory', async () => {
await testWatch({ action: 'create', fileToCreate: 'new-test-file.test.js', isolation });
});
}
it('should run new tests when a new file is created in the watched directory', {
todo: isolation === 'none' ?
'This test is failing when isolation is set to none and must be fixed' :
undefined,
}, async () => {
await testWatch({ action: 'create', fileToCreate: 'new-test-file.test.js', isolation });
});
});
}
});

0 comments on commit 0eab852

Please sign in to comment.