Skip to content

Commit dbdb75a

Browse files
TO_DELETE: add logs to debug windows failure in CI
1 parent a061a10 commit dbdb75a

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

packages/vite-plugin-cloudflare/e2e/helpers.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,11 @@ export async function fetchJson(url: string, info?: RequestInit) {
279279
/** Wait until a `vite dev` process is ready and capture the url on which it is listening. */
280280
export async function waitForReady(proc: Process) {
281281
const match = await vi.waitUntil(
282-
() => proc.stdout.match(/Local:\s+(http:\/\/localhost:\d+)/),
282+
() => {
283+
console.log(`===proc.stdout\n\n\n\n\n${proc.stdout}\n\n\n\n\n`);
284+
console.log(`===proc.stderr\n\n\n\n\n${proc.stderr}\n\n\n\n\n`);
285+
return proc.stdout.match(/Local:\s+(http:\/\/localhost:\d+)/);
286+
},
283287
{ interval: 100, timeout: 20_000 }
284288
);
285289
return match[1];

packages/vite-plugin-cloudflare/e2e/remote-bindings.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ if (!process.env.CLOUDFLARE_ACCOUNT_ID || !process.env.CLOUDFLARE_API_TOKEN) {
139139
});
140140
}
141141

142-
describe("remote bindings disabled", () => {
142+
describe.only("remote bindings disabled", () => {
143143
const projectPath = seed("remote-bindings-disabled", "pnpm");
144144

145145
describe.each(commands)('with "%s" command', (command) => {

packages/vite-plugin-cloudflare/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"dev": "tsdown --watch",
3939
"test": "vitest run",
4040
"test:ci": "pnpm test",
41-
"test:e2e": "vitest run -c e2e/vitest.config.ts",
41+
"test:e2e": "vitest run -c e2e/vitest.config.ts --allowOnly remote-bindings",
4242
"test:watch": "vitest"
4343
},
4444
"dependencies": {

0 commit comments

Comments
 (0)