Skip to content

Commit 389fec4

Browse files
committed
Enable watch mode & coverage for unit tests by default
Also include test under `bin/` (was missing)
1 parent 7993ce6 commit 389fec4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
run: pnpm install && pnpm add --global concurrently
5757

5858
- name: Build & Test
59-
run: concurrently --prefix none --group "pnpm:build" "pnpm:test --coverage" "pnpm:test:smoke"
59+
run: concurrently --prefix none --group "pnpm:build" "pnpm:test" "pnpm:test:smoke"
6060

6161
- name: Submit coverage
6262
uses: coverallsapp/github-action@master

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"lint:fix": "pnpm run lint --fix",
3737
"prepublishOnly": "safe-publish-latest && pnpm run build",
3838
"report-coverage": "cat coverage/lcov.info | coveralls",
39-
"test": "vitest run --project unit",
39+
"test": "vitest --project unit --coverage",
4040
"test:smoke": "vitest run --project smoke",
4141
"prepare": "husky"
4242
},

vitest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default defineConfig({
1212
extends: true,
1313
test: {
1414
name: 'unit',
15-
include: ['src/**/*.spec.ts'],
15+
include: ['{bin,src}/**/*.spec.ts'],
1616
},
1717
},
1818
{

0 commit comments

Comments
 (0)