chore: configure vitest with project-based setup and coverage
This commit is contained in:
parent
ce42eb1811
commit
04acd4b580
13 changed files with 1193 additions and 12 deletions
|
|
@ -5,5 +5,8 @@
|
|||
"type": "module",
|
||||
"dependencies": {
|
||||
"@glossa/shared": "workspace:*"
|
||||
},
|
||||
"devDependencies": {
|
||||
"jsdom": "^29.0.1"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"references": [{ "path": "../../packages/shared" }]
|
||||
"references": [{ "path": "../../packages/shared" }],
|
||||
"compilerOptions": { "module": "ESNext", "moduleResolution": "bundler" },
|
||||
}
|
||||
|
|
|
|||
3
apps/web/vitest.config.ts
Normal file
3
apps/web/vitest.config.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import { defineConfig } from "vitest/config";
|
||||
|
||||
export default defineConfig({ test: { environment: "jsdom", globals: true } });
|
||||
Loading…
Add table
Add a link
Reference in a new issue