Skip to content

Commit e056e31

Browse files
committed
Add test:coverage script to root package and turbo config
- Add test:coverage script to root package.json to run coverage for all packages - Configure turbo.json pipeline to recognize test:coverage task - Update web package test:coverage script to pass with no test files - Enable comprehensive coverage reporting across all monorepo packages
1 parent d4b0f30 commit e056e31

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"build": "turbo run build",
1313
"test": "turbo run test && npm run test:e2e:core",
1414
"test:unit": "turbo run test",
15+
"test:coverage": "turbo run test:coverage",
1516
"test:e2e": "playwright test",
1617
"test:e2e:core": "playwright test --grep=\"@core\"",
1718
"test:e2e:error-handling": "playwright test tests/e2e/graph-error-handling.spec.ts",

packages/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"build": "tsc && vite build",
1111
"preview": "vite preview",
1212
"test": "vitest --run --reporter=verbose --passWithNoTests",
13-
"test:coverage": "vitest run --coverage",
13+
"test:coverage": "vitest run --coverage --passWithNoTests",
1414
"lint": "eslint src --ext .ts,.tsx",
1515
"typecheck": "tsc --noEmit",
1616
"clean": "rm -rf dist coverage node_modules/.vite"

turbo.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
"outputs": ["coverage/**"],
1313
"env": ["NODE_ENV"]
1414
},
15+
"test:coverage": {
16+
"dependsOn": ["build"],
17+
"outputs": ["coverage/**"],
18+
"env": ["NODE_ENV"]
19+
},
1520
"lint": {
1621
"outputs": []
1722
},

0 commit comments

Comments
 (0)