Skip to content

Commit da875d6

Browse files
authored
Fix E2E snapshots on Windows (#9348)
1 parent f7c82a4 commit da875d6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/wrangler/e2e/dev-mixed-mode.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ describe("wrangler dev - mixed mode", () => {
139139
"Your Worker has access to the following bindings:
140140
Binding Resource Mode
141141
env.AI AI remote
142-
[wrangler:info] Ready on http://localhost:<PORT>
142+
[wrangler:info] Ready on http://<HOST>:<PORT>
143143
▲ [WARNING] Using Workers AI always accesses your Cloudflare account in order to run AI models, and so will incur usage charges even in local development.
144144
⎔ Starting local server...
145145
[wrangler:info] GET / 200 OK (TIMINGS)"

packages/wrangler/e2e/helpers/normalize.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function normalizeDebugLogFilepath(stdout: string): string {
177177
function removeLocalPort(stdout: string): string {
178178
return stdout.replace(
179179
/\[wrangler:info\] Ready on (https?):\/\/(.+):\d{4,5}/,
180-
"[wrangler:info] Ready on $1://$2:<PORT>"
180+
"[wrangler:info] Ready on $1://<HOST>:<PORT>"
181181
);
182182
}
183183

packages/wrangler/e2e/pages-dev.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ describe.sequential("wrangler pages dev", () => {
127127
env.TEST_SERVICE (test-worker) Worker local [not connected]
128128
Service bindings, Durable Object bindings, and Tail consumers connect to other \`wrangler dev\` processes running locally, with their connection status indicated by [connected] or [not connected]. For more details, refer to https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/#local-development
129129
⎔ Starting local server...
130-
[wrangler:info] Ready on http://localhost:<PORT>"
130+
[wrangler:info] Ready on http://<HOST>:<PORT>"
131131
`);
132132
});
133133

@@ -328,7 +328,7 @@ describe.sequential("wrangler pages dev", () => {
328328
env.KV_BINDING_TOML (KV_ID_TOML) KV Namespace local
329329
env.PAGES ("⚡️ Pages ⚡️") Environment Variable local
330330
⎔ Starting local server...
331-
[wrangler:info] Ready on http://localhost:<PORT>
331+
[wrangler:info] Ready on http://<HOST>:<PORT>
332332
[wrangler:info] GET / 200 OK (TIMINGS)"
333333
`);
334334
});

0 commit comments

Comments
 (0)