Commit 7c07118
committed
fix(frontend): exclude playwright/ from Jest test discovery
CI's Test Frontend job has been red since the first Playwright spec
landed. Jest's default testMatch picks up '**/*.spec.ts' which includes
playwright/specs/**/*.spec.ts; those import @playwright/test, which
can't load in the jsdom env Jest runs in:
TypeError: Class extends value undefined is not a constructor or null
at node_modules/playwright-core/lib/utilsBundle.js:83612:15
Local jest runs happened to pick a smaller --testPathPattern so the
breakage went unnoticed until the recent commits made both spec files
visible to the CI scan at once.
Add '<rootDir>/playwright/' alongside the existing cypress/ entry in
testPathIgnorePatterns.
Confirmed locally: jest --listTests returns zero playwright matches;
full suite 222/222 green.1 parent 8691271 commit 7c07118
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
| |||
0 commit comments