Skip to content

Commit 407a3c0

Browse files
committed
fix: add vitest.e2e.config.ts so e2e tests aren't excluded in CI
1 parent 9e9ff32 commit 407a3c0

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/e2e-webapp.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@ jobs:
8585
run: pnpm run build --filter webapp
8686

8787
- name: 🧪 Run Webapp E2E Tests
88-
run: cd apps/webapp && pnpm exec vitest run test/api-auth.e2e.test.ts --reporter=default
88+
run: cd apps/webapp && pnpm exec vitest run --config vitest.e2e.config.ts --reporter=default

apps/webapp/vitest.e2e.config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { defineConfig } from "vitest/config";
2+
import tsconfigPaths from "vite-tsconfig-paths";
3+
4+
export default defineConfig({
5+
test: {
6+
include: ["test/**/*.e2e.test.ts"],
7+
globals: true,
8+
pool: "forks",
9+
},
10+
// @ts-ignore
11+
plugins: [tsconfigPaths({ projects: ["./tsconfig.json"] })],
12+
});

0 commit comments

Comments
 (0)