Skip to content

Commit 555cba9

Browse files
70-10claude
andcommitted
fix: exclude Playwright E2E tests from Vitest execution
- Add E2E test exclusion in vitest.config.ts - Fix pnpx command in GitHub Actions workflow 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 56962e3 commit 555cba9

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
if: always()
3737
uses: davelosert/vitest-coverage-report-action@v2
3838
- name: Install Playwright Browsers
39-
run: pnpx playwright install --with-deps
39+
run: pnpm exec playwright install --with-deps
4040
- name: Run Playwright tests
4141
run: pnpm test:e2e
4242
- uses: actions/upload-artifact@v4

vitest.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ import { defineConfig } from "vitest/config";
22

33
export default defineConfig({
44
test: {
5+
exclude: [
6+
"**/node_modules/**",
7+
"**/dist/**",
8+
"**/cypress/**",
9+
"**/e2e/**",
10+
"**/.{idea,git,cache,output,temp}/**",
11+
"**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build}.config.*"
12+
],
513
coverage: {
614
reporter: ["text", "json-summary", "json"],
715
reportOnFailure: true,

0 commit comments

Comments
 (0)