Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anshumanv committed Jan 9, 2021
1 parent 8a049ae commit 6d9367b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/serve/basic/serve-basic.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ describe('basic serve usage', () => {
});

it('should work with the "--stats" option', async () => {
const { stderr, stdout } = await runServe(['--stats'], __dirname);
const { stderr, stdout } = await runServe(__dirname, ['--stats']);

expect(stderr).toBeFalsy();
expect(stripAnsi(stdout)).toContain(isWebpack5 ? 'compiled successfully' : 'Version: webpack');
expect(stdout.match(/HotModuleReplacementPlugin/g)).toBeNull();
});

it('should work with the "--stats detailed" option', async () => {
const { stderr, stdout } = await runServe(['--stats', 'verbose'], __dirname);
const { stderr, stdout } = await runServe(__dirname, ['--stats', 'verbose']);

expect(stderr).toBeFalsy();
expect(stdout).toContain(isWebpack5 ? 'from webpack.Compiler' : 'webpack.buildChunkGraph.visitModules');
Expand Down

0 comments on commit 6d9367b

Please sign in to comment.