Skip to content

Commit eaa1756

Browse files
committed
fix(web): rename Playwright e2e tests to .e2e.ts extension
- Rename store-hydration.test.ts -> store-hydration.e2e.ts - Rename store-ssr.test.ts -> store-ssr.e2e.ts - Update playwright.config.ts to match .e2e.ts files - Add web/bunfig.toml for test runner configuration This prevents Bun test runner from picking up Playwright tests, which should only be run via `bun run e2e`
1 parent ba0d08b commit eaa1756

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

web/bunfig.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[test]
2+
# Exclude Playwright e2e tests from Bun's test runner
3+
# These should be run via `bun run e2e` (which uses Playwright's runner)
4+
# E2E tests use .e2e.ts extension which Bun doesn't pick up by default
5+
root = "./src"

web/playwright.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const BASE_URL = `http://127.0.0.1:${PORT}`
66

77
export default defineConfig({
88
testDir: './src/__tests__/e2e',
9+
testMatch: '**/*.e2e.ts',
910
fullyParallel: true,
1011
forbidOnly: !!process.env.CI,
1112
retries: process.env.CI ? 2 : 0,
File renamed without changes.

0 commit comments

Comments
 (0)