-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathapi.test.js.snap.webpack5
More file actions
145 lines (109 loc) · 6.66 KB
/
Copy pathapi.test.js.snap.webpack5
File metadata and controls
145 lines (109 loc) · 6.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
// Rstest Snapshot v1
exports[`API > Invalidate callback > should use the default \`noop\` callback when invalidate is called without any callback > console messages 1`] = `
[
"[rspack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.",
"[HMR] Waiting for update signal from WDS...",
"Hey.",
]
`;
exports[`API > Invalidate callback > should use the default \`noop\` callback when invalidate is called without any callback > page errors 1`] = `[]`;
exports[`API > Invalidate callback > should use the default \`noop\` callback when invalidate is called without any callback > response status 1`] = `200`;
exports[`API > Invalidate callback > should use the provided \`callback\` function > console messages 1`] = `
[
"[rspack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.",
"[HMR] Waiting for update signal from WDS...",
"Hey.",
]
`;
exports[`API > Invalidate callback > should use the provided \`callback\` function > page errors 1`] = `[]`;
exports[`API > Invalidate callback > should use the provided \`callback\` function > response status 1`] = `200`;
exports[`API > Server.checkHostHeader > should allow URLs with scheme for checking origin when the "option.client.webSocketURL" is object > page errors 1`] = `[]`;
exports[`API > Server.checkHostHeader > should allow URLs with scheme for checking origin when the "option.client.webSocketURL" is object > response status 1`] = `200`;
exports[`API > Server.checkHostHeader > should allow URLs with scheme for checking origin when the "option.client.webSocketURL" is object > web socket URL 1`] = `"ws://test.host:8156/ws"`;
exports[`API > Server.getFreePort > should retry finding the port for up to defaultPortRetry times (number) > console messages 1`] = `
[
"[rspack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.",
"[HMR] Waiting for update signal from WDS...",
"Hey.",
]
`;
exports[`API > Server.getFreePort > should retry finding the port for up to defaultPortRetry times (number) > page errors 1`] = `[]`;
exports[`API > Server.getFreePort > should retry finding the port for up to defaultPortRetry times (number) > response status 1`] = `200`;
exports[`API > Server.getFreePort > should retry finding the port for up to defaultPortRetry times (string) > console messages 1`] = `
[
"[rspack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.",
"[HMR] Waiting for update signal from WDS...",
"Hey.",
]
`;
exports[`API > Server.getFreePort > should retry finding the port for up to defaultPortRetry times (string) > page errors 1`] = `[]`;
exports[`API > Server.getFreePort > should retry finding the port for up to defaultPortRetry times (string) > response status 1`] = `200`;
exports[`API > Server.getFreePort > should retry finding the port when serial ports are busy > console messages 1`] = `
[
"[rspack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.",
"[HMR] Waiting for update signal from WDS...",
"Hey.",
]
`;
exports[`API > Server.getFreePort > should retry finding the port when serial ports are busy > page errors 1`] = `[]`;
exports[`API > Server.getFreePort > should retry finding the port when serial ports are busy > response status 1`] = `200`;
exports[`API > Server.getFreePort > should return the port when the port is \`null\` > console messages 1`] = `
[
"[rspack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.",
"[HMR] Waiting for update signal from WDS...",
"Hey.",
]
`;
exports[`API > Server.getFreePort > should return the port when the port is \`null\` > page errors 1`] = `[]`;
exports[`API > Server.getFreePort > should return the port when the port is \`null\` > response status 1`] = `200`;
exports[`API > Server.getFreePort > should return the port when the port is undefined > console messages 1`] = `
[
"[rspack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.",
"[HMR] Waiting for update signal from WDS...",
"Hey.",
]
`;
exports[`API > Server.getFreePort > should return the port when the port is undefined > page errors 1`] = `[]`;
exports[`API > Server.getFreePort > should return the port when the port is undefined > response status 1`] = `200`;
exports[`API > Server.getFreePort > should throw the error when the port isn't found 1`] = `[Error: busy]`;
exports[`API > WEBPACK_SERVE environment variable > should be present > console messages 1`] = `
[
"[rspack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.",
"[HMR] Waiting for update signal from WDS...",
"Hey.",
]
`;
exports[`API > WEBPACK_SERVE environment variable > should be present > page errors 1`] = `[]`;
exports[`API > WEBPACK_SERVE environment variable > should be present > response status 1`] = `200`;
exports[`API > latest async API > should work and allow to rerun dev server multiple times > console messages 1`] = `
[
"[rspack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.",
"[HMR] Waiting for update signal from WDS...",
"Hey.",
]
`;
exports[`API > latest async API > should work and allow to rerun dev server multiple times > page errors 1`] = `[]`;
exports[`API > latest async API > should work when using configured manually > console messages 1`] = `
[
"[HMR] Waiting for update signal from WDS...",
"[rspack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading disabled, Progress disabled, Overlay disabled.",
"Hey.",
]
`;
exports[`API > latest async API > should work when using configured manually > page errors 1`] = `[]`;
exports[`API > latest async API > should work with async API > console messages 1`] = `
[
"[rspack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.",
"[HMR] Waiting for update signal from WDS...",
"Hey.",
]
`;
exports[`API > latest async API > should work with async API > page errors 1`] = `[]`;
exports[`API > latest async API > should work with callback API > console messages 1`] = `
[
"[rspack-dev-server] Server started: Hot Module Replacement enabled, Live Reloading enabled, Progress disabled, Overlay enabled.",
"[HMR] Waiting for update signal from WDS...",
"Hey.",
]
`;
exports[`API > latest async API > should work with callback API > page errors 1`] = `[]`;