Skip to content

Commit 765d4f0

Browse files
committed
add test:watch and do npm test on CI
1 parent e2ff726 commit 765d4f0

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
run: npx prettier --check "src/**/*.{ts,tsx,js,jsx,json,css,md}"
3535

3636
- name: Run tests
37-
run: npm test -- --run
37+
run: npm test
3838

3939
- name: Build library
4040
run: npm run build

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
run: npm run lint
3737

3838
- name: Run tests
39-
run: npm test -- --run
39+
run: npm test
4040

4141
- name: Build library
4242
run: npm run build

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"format": "prettier --write \"./**/*.{ts,tsx,js,jsx,json,css,md}\"",
4848
"format:check": "prettier --check \"./**/*.{ts,tsx,js,jsx,json,css,md}\"",
4949
"test": "vitest --run",
50+
"test:watch": "vitest --watch",
5051
"test:ui": "vitest --ui",
5152
"test:coverage": "vitest --coverage",
5253
"preview": "vite preview"

0 commit comments

Comments
 (0)