Skip to content

Commit

Permalink
tests: add test on error code
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Aug 17, 2020
1 parent 49a6f31 commit 5e7db04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/loader/error-test/loader-error.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ describe('loader error regression test for #1581', () => {
it(`should not ignore loader's error produce a failing build`, () => {
// Ignoring assertion on stderr because ts-loader is producing depreciation warnings
// with [email protected] -> https://github.com/TypeStrong/ts-loader/issues/1169
const { stdout } = run(__dirname, [], false);

const { stdout, exitCode } = run(__dirname, [], false);
expect(exitCode).not.toEqual(0);
expect(stdout).toContain('[1 error]');
expect(stdout).toContain(`Cannot assign to 'foobar' because it is a constant`);
});
Expand Down

0 comments on commit 5e7db04

Please sign in to comment.