Commit 0c1ff72
fix: configure separate test script for Worker tests
- Exclude workers/** from main Vitest config to prevent module resolution errors
- Add test:worker script to run Worker tests with their dedicated config
- Update test:all to include Worker tests in the full test suite
- Worker tests now run correctly with Cloudflare Workers pool
Worker tests: ✅ 15 passed (15)
Main app tests: ✅ 160 passed, 1 skipped (161)
The Worker tests use @cloudflare/vitest-pool-workers which requires
a separate Vitest config. This change keeps Worker tests isolated
while still allowing them to run as part of the full test suite.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent c979d00 commit 0c1ff72
2 files changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | | - | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
| |||
0 commit comments