Skip to content

Commit e8f54c4

Browse files
committed
test(cli): add windows support
1 parent 80fd37c commit e8f54c4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/cli/cli.test.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,12 @@ describe('CLI', () => {
109109
testBin('--color')
110110
.then((output) => {
111111
// https://github.com/webpack/webpack-dev-server/blob/master/lib/utils/colors.js
112-
expect(output.stdout).toContain('\u001b[34m⬡ wds: \u001b[39m');
112+
const text =
113+
process.platform === 'win32'
114+
? '\u001b[94m⬡ wds: \u001b[39m'
115+
: '\u001b[34m⬡ wds: \u001b[39m';
116+
117+
expect(output.stdout).toContain(text);
113118
done();
114119
})
115120
.catch(done);

0 commit comments

Comments
 (0)