Skip to content

Commit b746c68

Browse files
tests: test case to ensure info is not invoked unnecessarily
1 parent 01376d3 commit b746c68

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/serve/basic/serve-basic.test.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ describe('basic serve usage', () => {
2323
console.warn('TODO: fix `serve` test on windows');
2424
});
2525
} else {
26+
it('should not invoke info subcommand', async () => {
27+
const { stdout, stderr } = await runServe(['--client-log-level', 'info'], testPath);
28+
expect(stdout).toContain('main.js');
29+
expect(stdout).not.toContain('hot/dev-server.js');
30+
expect(stderr).toHaveLength(0);
31+
});
32+
2633
it('compiles without flags', async () => {
2734
const { stdout, stderr } = await runServe(['--port', port], testPath);
2835
expect(stdout).toContain('main.js');

0 commit comments

Comments
 (0)