Skip to content

Commit c43b93b

Browse files
committed
tests: update
1 parent 20b246c commit c43b93b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

test/bail/bail-and-watch-warning.test.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,11 @@ describe('bail and watch warning', () => {
1616
expect(stderr).toContain(`You are using "bail" with "watch". "bail" will still exit webpack when the first error is found.`);
1717
expect(stdout).toBeTruthy();
1818
});
19+
20+
it('should log not log warning if both are not true', () => {
21+
const { stderr, stdout } = run(__dirname, ['-c', 'third-webpack.config.js']);
22+
23+
expect(stderr).not.toContain(`You are using "bail" with "watch". "bail" will still exit webpack when the first error is found.`);
24+
expect(stdout).toBeTruthy();
25+
});
1926
});

test/bail/third-webpack.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
entry: './src/first.js',
3+
mode: 'development',
4+
bail: true,
5+
};

0 commit comments

Comments
 (0)