Skip to content

Commit

Permalink
tests: test case to ensure info is not invoked unnecessarily
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesgeorge007 committed Jun 30, 2020
1 parent 01376d3 commit b746c68
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/serve/basic/serve-basic.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ describe('basic serve usage', () => {
console.warn('TODO: fix `serve` test on windows');
});
} else {
it('should not invoke info subcommand', async () => {
const { stdout, stderr } = await runServe(['--client-log-level', 'info'], testPath);
expect(stdout).toContain('main.js');
expect(stdout).not.toContain('hot/dev-server.js');
expect(stderr).toHaveLength(0);
});

it('compiles without flags', async () => {
const { stdout, stderr } = await runServe(['--port', port], testPath);
expect(stdout).toContain('main.js');
Expand Down

0 comments on commit b746c68

Please sign in to comment.