We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99b78dc commit 11e5db5Copy full SHA for 11e5db5
test/cli.test.js
@@ -59,6 +59,18 @@ describe('CLI', () => {
59
.catch(done);
60
});
61
62
+ it('--color', (done) => {
63
+ runDevServer('--color')
64
+ .then((output) => {
65
+ // https://github.com/webpack/webpack-dev-server/blob/master/lib/utils/colors.js
66
+ expect(
67
+ output.stdout.includes('\u001b[39m \u001b[90m「wds」\u001b[39m:')
68
+ ).toEqual(true);
69
+ done();
70
+ })
71
+ .catch(done);
72
+ });
73
+
74
it('should exit the process when SIGINT is detected', (done) => {
75
const cliPath = path.resolve(__dirname, '../bin/webpack-dev-server.js');
76
const examplePath = path.resolve(__dirname, '../examples/cli/public');
0 commit comments