Update testing framework to Vitest (#4)

This commit is contained in:
2025-09-26 11:49:44 -04:00
committed by GitHub
parent 5bc6debe30
commit 174cae8610
12 changed files with 2667 additions and 95 deletions
+7 -2
View File
@@ -28,7 +28,10 @@
"scripts": {
"clean": "rm -rf dist",
"build": "npm run clean && tsc -p tsconfig.build.json",
"test": "npm run clean && tsc -p tsconfig.json && node --test dist/**/*.test.js",
"test": "npm run clean && tsc -p tsconfig.json && vitest run",
"test:watch": "npm run clean && tsc -p tsconfig.json && vitest",
"test:coverage": "npm run clean && tsc -p tsconfig.json && vitest run --coverage",
"test:smoke": "SMOKE=1 npm run test",
"lint": "biome check --write",
"prepublishOnly": "npm run build"
},
@@ -39,7 +42,9 @@
"@biomejs/biome": "2.2.4",
"@types/node": "24.5.2",
"@types/psl": "1.1.3",
"typescript": "5.9.2"
"@vitest/coverage-v8": "^3.2.4",
"typescript": "5.9.2",
"vitest": "^3.2.4"
},
"engines": {
"node": ">=18.17"