test: add vitest

* feature(root): add vitest and some basic tests

* fix(test): after rebase + added referrars test and more sites

* fix(test): test broken after rebase

* fix(test): provide db url to make prisma happy

* fix tests
This commit is contained in:
Carl-Gerhard Lindesvärd
2025-06-06 19:14:18 +02:00
committed by GitHub
parent 09c83ddeb4
commit 5445d6309e
23 changed files with 1131 additions and 3133 deletions

View File

@@ -2,11 +2,13 @@
"name": "@openpanel/worker",
"version": "0.0.3",
"scripts": {
"test": "vitest",
"dev": "dotenv -e ../../.env -c -v WATCH=1 tsup",
"testing": "WORKER_PORT=9999 pnpm dev",
"start": "node dist/index.js",
"build": "rm -rf dist && tsup",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"gen:referrers": "jiti scripts/get-referrers.ts && biome format --write ./src/referrers/index.ts"
},
"dependencies": {
"@bull-board/api": "5.21.0",