Skip to content

Commit

Permalink
test: add unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX committed Feb 3, 2024
1 parent e4bee23 commit 9a17bf0
Show file tree
Hide file tree
Showing 15 changed files with 2,531 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
node_modules
dist
test/output
coverage
13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@
}
},
"scripts": {
"build": "tsup ./src/index.ts",
"dev": "tsup ./src/index.ts --watch ./src --watch ./test/input --watch ./test/index.js"
"dev": "vite build --watch",
"build": "vite build",
"test": "vitest",
"coverage": "vitest run --coverage"
},
"author": {
"name": "_Kerman",
Expand All @@ -44,6 +46,11 @@
"devDependencies": {
"@slidev/types": "^0.46.3",
"@types/js-yaml": "^4.0.9",
"tsup": "^8.0.1"
"@types/node": "^20.11.15",
"@vitest/coverage-istanbul": "^1.2.2",
"tsup": "^8.0.1",
"vite": "^5.0.12",
"vite-plugin-dts": "^3.7.2",
"vitest": "^1.2.2"
}
}
Loading

0 comments on commit 9a17bf0

Please sign in to comment.