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
|
|
@ -2,8 +2,12 @@
|
|||
"extends": "../../tsconfig.base.json",
|
||||
"references": [
|
||||
{ "path": "../../packages/shared" },
|
||||
{ "path": "../../packages/db" }
|
||||
{ "path": "../../packages/db" },
|
||||
],
|
||||
"compilerOptions": { "module": "NodeNext", "moduleResolution": "NodeNext" },
|
||||
"include": ["src"]
|
||||
"compilerOptions": {
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"types": ["vitest/globals"],
|
||||
},
|
||||
"include": ["src"],
|
||||
}
|
||||
|
|
|
|||
3
apps/api/vitest.config.ts
Normal file
3
apps/api/vitest.config.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import { defineConfig } from "vitest/config";
|
||||
|
||||
export default defineConfig({ test: { environment: "node", globals: true } });
|
||||
Loading…
Add table
Add a link
Reference in a new issue