test: add Vitest server project with tool.ts timestamp tests

This commit is contained in:
Florian Kostenzer
2026-07-13 22:18:03 +02:00
parent 060d8d9c70
commit fca7624252
4 changed files with 436 additions and 3 deletions
+6 -2
View File
@@ -48,7 +48,10 @@
"preview": "vite preview",
"schedule": "vite-node src/lib/server/startup.ts",
"seed": "npx knex seed:run",
"start": "node build/main.js"
"start": "node build/main.js",
"test": "vitest run",
"test:server": "vitest run --project=server",
"test:watch": "vitest"
},
"devDependencies": {
"@internationalized/date": "^3.10.0",
@@ -92,7 +95,8 @@
"vaul-svelte": "^1.0.0-next.7",
"vite": "^7.2.2",
"vite-node": "^5.3.0",
"vite-plugin-devtools-json": "^1.0.0"
"vite-plugin-devtools-json": "^1.0.0",
"vitest": "^4.1.10"
},
"engines": {
"node": ">=20.0.0"