Skip to content

Commit 7ba54a2

Browse files
test: fix
1 parent 98eda2d commit 7ba54a2

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

test/cli/server-option.test.js

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,24 @@ describe('"server" CLI options', () => {
4646
).toMatchSnapshot();
4747
});
4848

49-
it('should work using "--server-type spdy"', async () => {
50-
const { exitCode, stderr } = await testBin([
51-
"--port",
52-
port,
53-
"--server-type",
54-
"spdy",
55-
]);
56-
57-
expect(exitCode).toEqual(0);
58-
expect(
59-
normalizeStderr(stderr, { ipv6: true, https: true }),
60-
).toMatchSnapshot();
61-
});
49+
const [major] = process.versions.node.split(".").map(Number);
50+
51+
(major >= 24 ? it.skip : it)(
52+
'should work using "--server-type spdy"',
53+
async () => {
54+
const { exitCode, stderr } = await testBin([
55+
"--port",
56+
port,
57+
"--server-type",
58+
"spdy",
59+
]);
60+
61+
expect(exitCode).toEqual(0);
62+
expect(
63+
normalizeStderr(stderr, { ipv6: true, https: true }),
64+
).toMatchSnapshot();
65+
},
66+
);
6267

6368
it('should work using "--server-options-key <path> --server-options-pfx <path> --server-options-passphrase webpack-dev-server --server-options-cert <path>"', async () => {
6469
const pfxFile = path.join(httpsCertificateDirectory, "server.pfx");

0 commit comments

Comments
 (0)