Skip to content

Commit e819457

Browse files
committed
test(webapp): exclude *.e2e.full.test.ts from unit-test glob
The webapp unit-test config excluded *.e2e.test.ts (smoke matrix) but not *.e2e.full.test.ts. The full auth suite needs a globalSetup that spawns a webapp + Postgres container, which only the dedicated vitest.e2e.full.config.ts provides. CI's unit-test shards were picking up the e2e-full files via the include glob and failing immediately with 'globalSetup didn't provide baseUrl/databaseUrl'.
1 parent 6a83354 commit e819457

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

apps/webapp/vitest.config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import tsconfigPaths from "vite-tsconfig-paths";
44
export default defineConfig({
55
test: {
66
include: ["test/**/*.test.ts"],
7-
exclude: ["test/**/*.e2e.test.ts"],
7+
// *.e2e.test.ts: smoke matrix, run via vitest.e2e.config.ts.
8+
// *.e2e.full.test.ts: full auth suite, runs via vitest.e2e.full.config.ts
9+
// (needs a globalSetup-spawned webapp + Postgres container).
10+
exclude: ["test/**/*.e2e.test.ts", "test/**/*.e2e.full.test.ts"],
811
globals: true,
912
pool: "forks",
1013
},

0 commit comments

Comments
 (0)