forked from tazo90/next-openapi-gen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.bench.config.ts
More file actions
43 lines (40 loc) · 1.25 KB
/
Copy pathvitest.bench.config.ts
File metadata and controls
43 lines (40 loc) · 1.25 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import path from "node:path";
import { fileURLToPath } from "node:url";
import { defineConfig } from "vitest/config";
const rootDir = path.dirname(fileURLToPath(import.meta.url));
const packageSrcDirs = {
"@workspace/openapi-cli": path.join(rootDir, "packages", "openapi-cli", "src"),
"@workspace/openapi-core": path.join(rootDir, "packages", "openapi-core", "src"),
"@workspace/openapi-framework-next": path.join(
rootDir,
"packages",
"openapi-framework-next",
"src",
),
"@workspace/openapi-framework-react-router": path.join(
rootDir,
"packages",
"openapi-framework-react-router",
"src",
),
"@workspace/openapi-framework-tanstack": path.join(
rootDir,
"packages",
"openapi-framework-tanstack",
"src",
),
"@workspace/openapi-init": path.join(rootDir, "packages", "openapi-init", "src"),
"@next-openapi-gen": path.join(rootDir, "packages", "next-openapi-gen", "src"),
"next-openapi-gen": path.join(rootDir, "packages", "next-openapi-gen", "src"),
} as const;
export default defineConfig({
resolve: {
alias: packageSrcDirs,
},
test: {
globals: true,
environment: "node",
include: ["tests/bench/**/*.bench.ts", "tests/bench/**/*.test.ts"],
exclude: ["**/.pnpm-store/**"],
},
});