Skip to content

Commit

Permalink
build(unit-external-dummy.test.ts): protect against process exit in f…
Browse files Browse the repository at this point in the history
…irst test
  • Loading branch information
Xunnamius committed Feb 21, 2021
1 parent d500558 commit e5f17e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/unit-external-dummy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ afterEach(() => {

it('calls invoker when imported', async () => {
expect.hasAssertions();
await isolatedImport();

await withMockedExit(async () => {
await isolatedImport();
});

expect(mockedDebug).toBeCalledWith('implement me!');
});

Expand Down

0 comments on commit e5f17e4

Please sign in to comment.