Skip to content

Commit 3793c16

Browse files
committed
chore: add root test script and expand pre-commit to lint, types, and tests
1 parent f8d0590 commit 3793c16

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pnpm biome check .
1+
pnpm lint && pnpm check-types && pnpm test

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"format": "biome format --write .",
1010
"clean": "turbo clean && rm -rf node_modules",
1111
"check-types": "turbo run check-types",
12+
"test": "turbo run test --concurrency=1",
1213
"prepare": "husky",
1314
"redis:flush": "docker exec docker-redis-1 redis-cli FLUSHALL",
1415
"check-translations": "pnpm -C packages/i18n exec tsx scripts/check-translations.ts",
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { defineConfig } from "vitest/config";
2+
3+
export default defineConfig({
4+
test: {
5+
include: ["__tests__/**/*.test.ts"],
6+
},
7+
});

0 commit comments

Comments
 (0)