Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ export default defineConfig({
typecheck: {
enabled: false,
},
// 'tests/e2e/**' excluído: contém testes Playwright (imports @playwright/test)
// que vitest tenta carregar e trava workers em deadlock. Playwright config
// usa testDir: './e2e' (não 'tests/e2e'), então esses 8 arquivos estavam
// órfãos. Ver fix(test): unblock vitest hang in CI.
exclude: ['node_modules', 'dist', '.idea', '.git', '.cache', 'tests/e2e/**'],
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Narrow the e2e exclusion to Playwright tests

This excludes all of tests/e2e from Vitest even though test.include still intentionally collects tests/**/* and this directory contains many Vitest suites, not just the 8 Playwright files. I checked tests/e2e and found 32 *.test.* files importing vitest (for example admin-module.test.ts, ui-components.test.tsx, and catalog-price-freshness-badge.test.tsx), so npm test/test:coverage will silently stop exercising those regressions; the exclusion should target only the @playwright/test specs or move those specs out of Vitest's include set.

Useful? React with 👍 / 👎.

Comment on lines +15 to +19
// CI runners (GitHub Actions ubuntu-latest) têm 2 vCPU (4 vThreads).
//
Expand Down
Loading