Skip to content

Commit

Permalink
build(externals): update expected exit code to 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Xunnamius committed Feb 22, 2021
1 parent 996135e commit fb22498
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion external-scripts/dummy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ const invoked = async () => {

export default invoked().catch((e: Error | string) => {
debug.extend('error')(typeof e == 'string' ? e : e.message);
process.exit(1);
process.exit(2);
});
4 changes: 2 additions & 2 deletions test/unit-external-dummy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ it('handles thrown error objects', async () => {
throw new Error('problems!');
});

await protectedImport({ expectedExitCode: 1 });
await protectedImport({ expectedExitCode: 2 });

expect(mockedDebug).toHaveBeenNthCalledWith(4, 'problems!');
});
Expand All @@ -45,7 +45,7 @@ it('handles thrown string errors', async () => {
throw 'problems!';
});

await protectedImport({ expectedExitCode: 1 });
await protectedImport({ expectedExitCode: 2 });

expect(mockedDebug).toHaveBeenNthCalledWith(4, 'problems!');
});

0 comments on commit fb22498

Please sign in to comment.