Skip to content

Commit

Permalink
chore: setup test with vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
周金富 committed Apr 23, 2022
1 parent 69f8a10 commit 9a764f3
Show file tree
Hide file tree
Showing 6 changed files with 852 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ node_modules
dist
dist-ssr
*.local
# tests
coverage
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
"main": "dist/index.js",
"scripts": {
"dev": "tsc -p . -w --incremental --skipLibCheck",
"build": "rm -rf dist && tsc -p . --skipLibCheck"
"build": "rm -rf dist && tsc -p . --skipLibCheck",
"test": "vitest",
"coverage": "vitest run --coverage",
"tdd": "vitest -w"
},
"files": [
"dist"
Expand All @@ -22,8 +25,11 @@
"homepage": "https://github.com/chenxch/vite-plugin-dynamic-base",
"devDependencies": {
"@types/node": "^16.0.0",
"c8": "^7.11.2",
"node-html-parser": "^5.2.0",
"vite": "^2.4.0"
"typescript": "^4.6.3",
"vite": "^2.4.0",
"vitest": "^0.9.4"
},
"keywords": [
"vite",
Expand Down
Loading

0 comments on commit 9a764f3

Please sign in to comment.