Skip to content

Commit

Permalink
tests: add tests for multiple env
Browse files Browse the repository at this point in the history
  • Loading branch information
anshumanv committed Jul 31, 2020
1 parent 1847128 commit 8f720e5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion 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',
Expand Down

0 comments on commit 8f720e5

Please sign in to comment.