Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ npm run dev # Start server (port 3000) + client dev server (po
| `npm run dev:client` | Start only the Webpack dev server |
| `npm run build` | Build all packages (shared -> client -> server) |
| `npm test` | Run all tests |
| `npm run test:collect` | List all tests (suites + names) without executing them |
| `npm run lint` | Lint all code |
| `npm run format` | Format all code |
| `npm run typecheck` | Type-check all packages |
Expand Down
6 changes: 6 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ const config: Config = {
// Locally, use up to 2 workers and recycle when heap exceeds 512 MB.
// CI auto-detects workers (GitHub Actions sets CI=true).
...(isCI ? {} : { maxWorkers: 2, workerIdleMemoryLimit: '512M' }),
// Give workers 2 s to release file-watchers and jsdom handles after tests
// complete before force-killing. The 500 ms default is too tight in the
// resource-constrained sandbox and produces spurious "worker failed to exit
// gracefully" warnings; 2000 ms lets legitimate cleanup finish while still
// bounding true hangs.
workerGracefulExitTimeout: 2000,
projects: [
{
...baseConfig,
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
"test": "node --experimental-vm-modules node_modules/.bin/jest",
"test:watch": "node --experimental-vm-modules node_modules/.bin/jest --watch",
"test:coverage": "node --experimental-vm-modules node_modules/.bin/jest --coverage",
"test:collect": "node --experimental-vm-modules node_modules/.bin/jest --collectTests",
"test:collect:json": "node --experimental-vm-modules node_modules/.bin/jest --collectTests --json",
"test:e2e": "npm test -w e2e",
"test:e2e:shard": "npm run test:shard -w e2e",
"test:e2e:smoke": "npm run test:smoke -w e2e",
Expand Down
Loading