Skip to content

Commit

Permalink
fix: cache
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Oct 4, 2020
1 parent e99289c commit 955a1b1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/cache/cache.test.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
'use strict';

const { run } = require('../utils/test-utils');
const { run, isWebpack5 } = require('../utils/test-utils');

describe('bail and watch warning', () => {
it('should log warning in case of single compiler', () => {
let { stderr, stdout } = run(__dirname, ['-c', 'webpack.config.js'], false);
// run 2nd compilation
({ stderr, stdout } = run(__dirname, ['-c', 'webpack.config.js'], false));

expect(stderr).toContain('starting to restore cache content');
expect(stdout).toContain('[cached] 1 module');
if (isWebpack5) {
expect(stderr).toContain('starting to restore cache content');
expect(stdout).toContain('[cached] 1 module');
}
});
});

0 comments on commit 955a1b1

Please sign in to comment.