Skip to content

Commit d1289f6

Browse files
committed
fix: clean up uncaughtException listeners in cli-exit tests
1 parent 9c9e13c commit d1289f6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/lib/cli-exit.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ describe('cli-exit', () => {
1212
beforeEach(() => {
1313
exitSpy = mockExitThrow();
1414
process.removeAllListeners('SIGINT');
15+
process.removeAllListeners('uncaughtException');
1516
});
1617

1718
afterEach(() => {
1819
process.removeAllListeners('SIGINT');
20+
process.removeAllListeners('uncaughtException');
1921
vi.restoreAllMocks();
2022
});
2123

0 commit comments

Comments
 (0)