Skip to content

Commit 7732632

Browse files
committed
chore: add test commands
1 parent c211c04 commit 7732632

File tree

4 files changed

+191
-2
lines changed

4 files changed

+191
-2
lines changed

package-lock.json

Lines changed: 174 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818
"scripts": {
1919
"build": "turbo run build",
2020
"check-types": "turbo run check-types",
21-
"lint": "biome format --write ."
21+
"lint": "biome format --write .",
22+
"test": "turbo run test",
23+
"test:watch": "turbo run test:watch",
24+
"test:coverage": "turbo run test:coverage"
2225
},
2326
"devDependencies": {
2427
"@arethetypeswrong/core": "0.18.2",
@@ -29,6 +32,7 @@
2932
"@opentelemetry/sdk-logs": "0.208.0",
3033
"@types/jsdom": "27.0.0",
3134
"@vitest/browser-playwright": "4.0.9",
35+
"@vitest/coverage-v8": "4.0.9",
3236
"jsdom": "27.0.1",
3337
"lefthook": "2.0.4",
3438
"publint": "0.3.15",

turbo.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@
1010
"dev": {
1111
"persistent": true,
1212
"cache": false
13+
},
14+
"test": {
15+
"dependsOn": ["^build"]
16+
},
17+
"test:watch": {
18+
"persistent": true,
19+
"cache": false
20+
},
21+
"test:coverage": {
22+
"dependsOn": ["^build"],
23+
"outputs": ["coverage/**"]
1324
}
1425
}
1526
}

vitest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default defineConfig({
3838
},
3939
coverage: {
4040
provider: 'v8',
41-
reporter: ['text', 'json', 'html'],
41+
reporter: ['text'],
4242
exclude: ['node_modules/**', 'dist/**', '**/*.test.ts', '**/*.spec.ts'],
4343
},
4444
},

0 commit comments

Comments
 (0)