Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
petebacondarwin committed Feb 18, 2025
1 parent b3808ac commit 6e2abcc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
18 changes: 17 additions & 1 deletion packages/create-cloudflare/e2e-tests/frameworks.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,23 @@ function getFrameworkTests(opts: {
},
flags: ["--style", "sass"],
},
react: {
promptHandlers: [
{
matcher: /Select a variant:/,
input: [keys.enter],
},
],
testCommitMessage: true,
verifyDeploy: {
route: "/",
expectedText: "Vite + React",
},
verifyPreview: {
route: "/",
expectedText: "Vite + React",
},
},
gatsby: {
unsupportedPms: ["bun", "pnpm"],
promptHandlers: [
Expand Down Expand Up @@ -534,7 +551,6 @@ function getFrameworkTests(opts: {
],
testCommitMessage: true,
unsupportedOSs: ["win32"],
unsupportedPms: ["yarn"],
timeout: LONG_TIMEOUT,
verifyDeploy: {
route: "/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ const config: TemplateConfig = {
transformPackageJson: async () => ({
scripts: {
deploy: `${npm} run build && wrangler deploy`,
preview: `${npm} vite build && vite preview`,
},
}),
devScript: "dev",
Expand Down

0 comments on commit 6e2abcc

Please sign in to comment.