Skip to content

Commit 8636472

Browse files
committed
fix(cli-repl): skip interrupt test on win32
1 parent 3793809 commit 8636472

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/cli-repl/src/cli-repl.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,10 @@ describe('CliRepl', () => {
981981
expect(output).to.include('on clirepltest> ');
982982
});
983983

984-
it('renders the prompt correctly on interrupt', async() => {
984+
it('renders the prompt correctly on interrupt', async function() {
985+
if (process.platform === 'win32') { // cannot trigger SIGINT on Windows
986+
return this.skip();
987+
}
985988
input.write('while(true) { sleep(500); }\n');
986989
process.kill(process.pid, 'SIGINT');
987990

0 commit comments

Comments
 (0)