Skip to content

Commit 0282a29

Browse files
make api e2e structure consistent with create-next-app
1 parent e62af72 commit 0282a29

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed
File renamed without changes.

examples/api/playwright.config.ts renamed to examples/api/e2e/playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ declare var process: { env: Record<string, string> };
1313
* See https://playwright.dev/docs/test-configuration.
1414
*/
1515
export default defineConfig({
16-
testDir: "./e2e-tests",
16+
testDir: "./",
1717
/* Run tests in files in parallel */
1818
fullyParallel: true,
1919
/* Fail the build on CI if you accidentally left test.only in the source code. */

examples/api/playwright.dev.config.ts renamed to examples/api/e2e/playwright.dev.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ declare var process: { env: Record<string, string> };
1313
* See https://playwright.dev/docs/test-configuration.
1414
*/
1515
export default defineConfig({
16-
testDir: "./e2e-tests",
16+
testDir: "./",
1717
/* Run tests in files in parallel */
1818
fullyParallel: true,
1919
/* Fail the build on CI if you accidentally left test.only in the source code. */

examples/api/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"build:worker": "pnpm cloudflare",
1111
"dev:worker": "wrangler dev --port 8770",
1212
"preview:worker": "pnpm build:worker && pnpm dev:worker",
13-
"e2e": "playwright test",
14-
"e2e:dev": "playwright test -c playwright.dev.config.ts",
13+
"e2e": "playwright test -c e2e/playwright.dev.config.ts",
14+
"e2e:dev": "playwright test -c e2e/playwright.dev.config.ts",
1515
"cf-typegen": "wrangler types --env-interface CloudflareEnv"
1616
},
1717
"dependencies": {

0 commit comments

Comments
 (0)