Skip to content

Commit e5e5f99

Browse files
dario-piotrowiczpetebacondarwin
authored andcommitted
add test for next-on-pages not being there anymore
1 parent 151f86b commit e5e5f99

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

packages/create-cloudflare/e2e/tests/cli/cli.test.ts

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -635,16 +635,20 @@ describe("Create Cloudflare CLI", () => {
635635
});
636636
});
637637

638-
test("error when trying to create a solid app on Pages", async ({
639-
logStream,
640-
}) => {
641-
const { errors } = await runC3(
642-
["--platform=pages", "--framework=solid", "my-app"],
643-
[],
644-
logStream,
645-
);
646-
expect(errors).toMatch(
647-
/Error: The .*? framework doesn't support the "pages" platform/,
638+
describe("frameworks related", () => {
639+
["solid", "next"].forEach((framework) =>
640+
test(`error when trying to create a ${framework} app on Pages`, async ({
641+
logStream,
642+
}) => {
643+
const { errors } = await runC3(
644+
["--platform=pages", `--framework=${framework}`, "my-app"],
645+
[],
646+
logStream,
647+
);
648+
expect(errors).toMatch(
649+
/Error: The .*? framework doesn't support the "pages" platform/,
650+
);
651+
}),
648652
);
649653
});
650654
});

0 commit comments

Comments
 (0)