-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
25 lines (23 loc) · 704 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
25 lines (23 loc) · 704 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { defineConfig } from "vitest/config";
import path from "node:path";
import { fileURLToPath } from "node:url";
const __dirname = path.dirname(fileURLToPath(import.meta.url));
export default defineConfig({
resolve: {
alias: {
"@kiploks/engine-contracts": path.resolve(__dirname, "packages/contracts/src/index.ts"),
"@kiploks/engine-core": path.resolve(__dirname, "packages/core/src/index.ts"),
},
},
test: {
environment: "node",
globals: true,
include: ["**/*.test.ts"],
exclude: ["node_modules/**", "**/dist/**"],
coverage: {
provider: "v8",
reporter: ["text", "html", "lcov"],
reportsDirectory: "coverage-engine",
},
},
});