add vitest for JS/TS testing with comprehensive test coverage

This commit is contained in:
Younes ENNAJI
2026-02-25 15:52:21 +00:00
parent 62848e0fd1
commit d33de77835
21 changed files with 4641 additions and 67 deletions
+10 -2
View File
@@ -41,10 +41,16 @@
"build": "cross-env NODE_ENV=production rollup -c",
"clean": "rimraf src/*/Prime/Resources/dist",
"link": "npm link --workspaces",
"ncu": "ncu -u && npm run ncu --workspaces"
"ncu": "ncu -u && npm run ncu --workspaces",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"test:ui": "vitest --ui"
},
"devDependencies": {
"@antfu/eslint-config": "^2.27.3",
"@vitest/coverage-v8": "^3.0.7",
"@vitest/ui": "^3.0.7",
"@babel/core": "^7.29.0",
"@babel/preset-env": "^7.29.0",
"@rollup/plugin-babel": "^6.1.0",
@@ -84,6 +90,8 @@
"sass": "^1.97.3",
"ts-node": "^10.9.2",
"tslib": "^2.8.1",
"typescript": "^5.9.3"
"typescript": "^5.9.3",
"vitest": "^3.0.7",
"jsdom": "^26.0.0"
}
}