Skip to content

Commit

Permalink
Add test scaffolding
Browse files Browse the repository at this point in the history
  • Loading branch information
lucperkins committed Apr 23, 2024
1 parent 2552ef3 commit 83999e5
Show file tree
Hide file tree
Showing 4 changed files with 669 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
run: nix develop --command pnpm run check-fmt
- name: Run ESLint
run: nix develop --command pnpm run lint
- name: Run tests
run: nix develop --command pnpm run test
- name: Build bundle
run: nix develop --command pnpm run build
- name: Package as Node.js runnable
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"check-fmt": "prettier --check .",
"lint": "eslint ts/**/*.ts",
"package": "ncc build",
"test": "vitest",
"all": "pnpm run format && pnpm run lint && pnpm run build && pnpm run package"
},
"repository": {
Expand Down Expand Up @@ -41,6 +42,7 @@
"ncc": "^0.3.6",
"prettier": "^3.2.5",
"tsup": "^8.0.2",
"typescript": "^5.4.5"
"typescript": "^5.4.5",
"vitest": "^1.5.0"
}
}
Loading

0 comments on commit 83999e5

Please sign in to comment.