diff --git a/test/config/type/function-with-env/function-with-env.test.js b/test/config/type/function-with-env/function-with-env.test.js index 009de80bc52..fae211de366 100644 --- a/test/config/type/function-with-env/function-with-env.test.js +++ b/test/config/type/function-with-env/function-with-env.test.js @@ -23,7 +23,7 @@ describe('function configuration', () => { expect(stderr).toBeFalsy(); expect(stdout).toBeTruthy(); // check that the verbose env is respected - expect(stdout).toContain('LOG from webpack.buildChunkGraph.visitModules'); + expect(stdout).toContain('LOG from webpack'); // check if the values from DefinePlugin make it to the compiled code readFile(resolve(__dirname, './bin/dev.js'), 'utf-8', (err, data) => { expect(err).toBe(null); diff --git a/test/config/type/function-with-env/webpack.config.js b/test/config/type/function-with-env/webpack.config.js index f84c551e123..35efedbbb0d 100644 --- a/test/config/type/function-with-env/webpack.config.js +++ b/test/config/type/function-with-env/webpack.config.js @@ -1,7 +1,6 @@ const { DefinePlugin } = require('webpack'); module.exports = (env) => { - console.log({ env }); if (env.isProd) { return { entry: './a.js',