Skip to content

Commit cac5ee9

Browse files
committed
Add typecheck to test scripts
Include npm run typecheck in test and test:unit scripts to catch type errors during CI/test runs, matching how lint is already included.
1 parent 0e5bbc3 commit cac5ee9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"lint": "eslint --fix && echo 'Lint fix complete.'",
1313
"format": "prettier --write . && echo 'Format complete.'",
1414
"format:check": "prettier --check . && echo 'Format check complete.'",
15-
"test": "vitest run && echo 'Test complete.' && npm run -s lint",
16-
"test:unit": "vitest run --exclude '**/*-e2e.test.js' && echo 'Unit tests complete.' && npm run -s lint",
15+
"test": "vitest run && echo 'Test complete.' && npm run -s lint && npm run -s typecheck",
16+
"test:unit": "vitest run --exclude '**/*-e2e.test.js' && echo 'Unit tests complete.' && npm run -s lint && npm run -s typecheck",
1717
"test:e2e": "vitest run **/*-e2e.test.js && echo 'E2E tests complete.'",
1818
"typecheck": "tsc --noEmit && echo 'Type check complete.'",
1919
"check-status": "[ -n \"$(git status --porcelain)\" ] && { echo '❌ Uncommitted changes'; exit 1; } || echo '✅ Git status is clean.'",

0 commit comments

Comments
 (0)