diff --git a/test/colors/colors-false.webpack.config.js b/test/colors/colors-false.webpack.config.js index b0f58638bfa..ca20696f2e3 100644 --- a/test/colors/colors-false.webpack.config.js +++ b/test/colors/colors-false.webpack.config.js @@ -2,4 +2,5 @@ module.exports = { stats: { colors: false, }, + mode: 'production', }; diff --git a/test/colors/colors-true.webpack.config.js b/test/colors/colors-true.webpack.config.js index 15fc57eafd8..76255bff92d 100644 --- a/test/colors/colors-true.webpack.config.js +++ b/test/colors/colors-true.webpack.config.js @@ -2,4 +2,5 @@ module.exports = { stats: { colors: true, }, + mode: 'production', }; diff --git a/test/colors/multiple-configs.js b/test/colors/multiple-configs.js index b175991ac4d..0828c36394a 100644 --- a/test/colors/multiple-configs.js +++ b/test/colors/multiple-configs.js @@ -3,10 +3,12 @@ module.exports = [ name: 'first-config', entry: './src/first.js', stats: 'normal', + mode: 'production', }, { name: 'second-config', entry: './src/second.js', stats: 'normal', + mode: 'production', }, ]; diff --git a/test/colors/no-stats.webpack.config.js b/test/colors/no-stats.webpack.config.js index 34672801b3d..71af9d200a9 100644 --- a/test/colors/no-stats.webpack.config.js +++ b/test/colors/no-stats.webpack.config.js @@ -1,3 +1,4 @@ module.exports = { name: 'test', + mode: 'production', }; diff --git a/test/colors/stats-boolean.webpack.config.js b/test/colors/stats-boolean.webpack.config.js index 1c9b636be33..9f947b31986 100644 --- a/test/colors/stats-boolean.webpack.config.js +++ b/test/colors/stats-boolean.webpack.config.js @@ -1,3 +1,4 @@ module.exports = { stats: true, + mode: 'production', }; diff --git a/test/colors/stats-string.webpack.config.js b/test/colors/stats-string.webpack.config.js index 5c13e746a6a..d3712a1cf09 100644 --- a/test/colors/stats-string.webpack.config.js +++ b/test/colors/stats-string.webpack.config.js @@ -1,3 +1,4 @@ module.exports = { stats: 'verbose', + mode: 'production', }; diff --git a/test/colors/webpack.config.js b/test/colors/webpack.config.js new file mode 100644 index 00000000000..5b69c702150 --- /dev/null +++ b/test/colors/webpack.config.js @@ -0,0 +1,3 @@ +module.exports = { + mode: 'production', +}; diff --git a/test/watch/watch-flag.test.js b/test/watch/watch-flag.test.js index e326fed48d8..fc6d3c153a8 100644 --- a/test/watch/watch-flag.test.js +++ b/test/watch/watch-flag.test.js @@ -10,7 +10,7 @@ const wordsInStatsv5 = ['asset', 'index.js', 'compiled successfully']; describe('--watch flag', () => { it('should recompile upon file change', (done) => { - const proc = runAndGetWatchProc(__dirname, ['--watch'], false, '', true); + const proc = runAndGetWatchProc(__dirname, ['--watch', '--mode', 'production'], false, '', true); let semaphore = 0; proc.stdout.on('data', (chunk) => { const data = stripAnsi(chunk.toString()); @@ -45,7 +45,7 @@ describe('--watch flag', () => { }); it('should print compilation lifecycle', (done) => { - const proc = runAndGetWatchProc(__dirname, ['--watch'], false, '', true); + const proc = runAndGetWatchProc(__dirname, ['--watch', '--mode', 'production'], false, '', true); let semaphore = 0; proc.stdout.on('data', (chunk) => { const data = stripAnsi(chunk.toString());