Skip to content

Commit

Permalink
Add tests and fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
danvim committed Nov 19, 2023
1 parent 10996ed commit 508f380
Show file tree
Hide file tree
Showing 9 changed files with 730 additions and 70 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Run tests
run: pnpm vitest run
- name: Build
run: pnpm run build:docs
- name: Setup Pages
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"build": "tsc && vite build",
"build:docs": "vite build --config vite-docs.config.ts",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"preview": "vite preview",
"test": "vitest"
},
"dependencies": {
"pdfmake": "^0.2.8",
Expand All @@ -35,7 +36,8 @@
"prettier": "^3.1.0",
"typescript": "^5.2.2",
"vite": "^5.0.0",
"vite-plugin-dts": "^3.6.3"
"vite-plugin-dts": "^3.6.3",
"vitest": "^0.34.6"
},
"files": [
"dist"
Expand Down
Loading

0 comments on commit 508f380

Please sign in to comment.