Skip to content

Commit

Permalink
test: add unit test with vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
zoubingwu committed Jan 5, 2022
1 parent 2de3096 commit 5db0e73
Show file tree
Hide file tree
Showing 6 changed files with 67,838 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
node_modules/
dist/
fixture/
example/src/mock/

.idea/
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules
build
coverage
example/src/mock.js
fixture
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"scripts": {
"build": "tsup",
"fmt": "prettier {example,src}/**/*.{js,jsx,ts,tsx,css,md,html} --write",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "vitest"
},
"author": "zoubingwu<[email protected]>",
"license": "MIT",
Expand All @@ -37,7 +37,8 @@
"lodash": "^4.17.21",
"openapi-types": "^10.0.0",
"tsup": "^5.11.9",
"typescript": "^4.5.4"
"typescript": "^4.5.4",
"vitest": "^0.0.132"
},
"repository": {
"type": "git",
Expand Down
123 changes: 123 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5db0e73

Please sign in to comment.