Skip to content

Commit 9879a4d

Browse files
committed
feat: add test scripts
1 parent a04b930 commit 9879a4d

File tree

2 files changed

+151
-6
lines changed

2 files changed

+151
-6
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
"build": "pnpm prebuild && next build",
1010
"build:config": "esbuild next.config.ts --bundle --outfile=next.config.js --platform=node --external:pnpapi --target=es2020 --minify",
1111
"start": "next start",
12-
"lint": "next lint"
12+
"lint": "next lint",
13+
"test": "vitest",
14+
"coverage": "vitest run --coverage"
1315
},
1416
"dependencies": {
1517
"cors": "^2.8.5",
@@ -27,6 +29,7 @@
2729
"@types/react": "18.0.26",
2830
"@types/react-dom": "18.0.10",
2931
"@vitejs/plugin-react": "^3.1.0",
32+
"@vitest/coverage-c8": "^0.29.1",
3033
"esbuild": "^0.16.16",
3134
"eslint": "8.31.0",
3235
"eslint-config-next": "13.1.1",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)