Skip to content

Commit

Permalink
parallelize tests with test:parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
0age committed Dec 8, 2024
1 parent 0a8c2c9 commit f694bd8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"build": "(cd frontend && pnpm build) && esbuild src/index.ts --bundle --platform=node --outdir=dist --format=esm --sourcemap --packages=external && cp .env dist/ 2>/dev/null || true && cp -r frontend/dist dist/frontend",
"build:all": "pnpm build",
"test": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest --config jest.config.ts --detectOpenHandles --maxWorkers=50% --maxConcurrency=7",
"test:related": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest --config jest.config.ts --bail --findRelatedTests src/__tests__/*.test.ts --maxWorkers=50% --maxConcurrency=7",
"test:parallel": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest --config jest.config.ts --runInBand=false --bail --no-cache --maxWorkers=50% --maxConcurrency=7",
"test:related": "NODE_OPTIONS='--experimental-vm-modules --no-warnings' jest --config jest.config.ts --bail --findRelatedTests --maxWorkers=50% --maxConcurrency=7",
"smoke-test": "node scripts/smoke-test.js",
"smoke-test:precommit": "SMOKE_TEST_PORT=4000 node scripts/smoke-test.js",
"lint": "eslint src/",
Expand Down
11 changes: 0 additions & 11 deletions src/__tests__/routes.test.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/routes.ts

This file was deleted.

0 comments on commit f694bd8

Please sign in to comment.