Establishing unit tests using vitest.

This commit is contained in:
Robin Tail
2026-01-12 15:05:30 +01:00
parent 5fa8c3603d
commit c89f1b9537
6 changed files with 2206 additions and 1238 deletions
+3 -2
View File
@@ -13,7 +13,7 @@
"main.d.ts"
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"test": "vitest",
"typecheck": "tsc --noEmit",
"build": "node esbuild.config.js",
"play": "node play.ts",
@@ -47,7 +47,8 @@
"arg": "^5.0.2",
"esbuild": "^0.25.9",
"husky": "^9.0.0",
"typescript": "^5.9.3"
"typescript": "^5.9.3",
"vitest": "^4.0.17"
},
"repository": {
"type": "git",