Skip to content

Commit 6e8e747

Browse files
chore: fix vite-plugin e2es using non existent viteCommand function (#8736)
1 parent 8df60b5 commit 6e8e747

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/vite-plugin-cloudflare/e2e/wrangler-configs-validation.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@ import { runCommand, test } from "./helpers.js";
55
// testing regarding the validation there are unit tests in src/__tests__/get-validated-wrangler-config-path.spec.ts
66

77
describe("during development wrangler config files are validated", () => {
8-
test("for the entry worker", async ({ expect, seed, viteCommand }) => {
8+
test("for the entry worker", async ({ expect, seed, viteDev }) => {
99
const projectPath = await seed("no-wrangler-config");
1010
runCommand(`pnpm install`, projectPath);
1111

12-
const proc = await viteCommand("pnpm", "dev", projectPath);
12+
const proc = viteDev(projectPath);
1313

1414
expect(await proc.exitCode).not.toBe(0);
1515
expect(proc.stderr).toMatch(
1616
/Error: No config file found in the .*? directory/
1717
);
1818
});
1919

20-
test("for auxiliary workers", async ({ expect, seed, viteCommand }) => {
20+
test("for auxiliary workers", async ({ expect, seed, viteDev }) => {
2121
const projectPath = await seed("no-wrangler-config-for-auxiliary-worker");
2222
runCommand(`pnpm install`, projectPath);
2323

24-
const proc = await viteCommand("pnpm", "dev", projectPath);
24+
const proc = viteDev(projectPath);
2525

2626
expect(await proc.exitCode).not.toBe(0);
2727
expect(proc.stderr).toMatch(

0 commit comments

Comments
 (0)