Skip to content

Commit 6540d18

Browse files
committed
chor: add vitest config
1 parent c4cfe65 commit 6540d18

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: 'Install Deps'
2828
run: pnpm install --frozen-lockfile
2929
- name: 'Test'
30-
run: npx vitest
30+
run: pnpm test
3131
# - name: 'Test coverage'
3232
# run: npx vitest --coverage
3333
- name: 'Report Coverage'

vite.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ import { defineConfig } from "vitest/config"
33
import dts from "vite-plugin-dts"
44

55
export default defineConfig({
6+
test: {
7+
coverage: {
8+
reporter: ["json-summary", "text"]
9+
}
10+
},
611
build: {
712
lib: {
813
// Could also be a dictionary or array of multiple entry points

0 commit comments

Comments
 (0)