-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathvitest.config.ts
More file actions
28 lines (27 loc) · 901 Bytes
/
vitest.config.ts
File metadata and controls
28 lines (27 loc) · 901 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
26
27
28
import { defineConfig } from "vitest/config";
import path from "path";
import BenchJsonReporter from "./src/tests/helpers/bench-json-reporter";
export default defineConfig({
test: {
browser: {
enabled: true,
provider: "playwright",
instances: [
{ browser: "chromium", headless: true },
{ browser: "webkit", headless: true },
],
},
setupFiles: ["./src/tests/setup.ts"],
benchmark: {
include: ["src/tests/benchmarks/**/*.bench.ts"],
reporters: [new BenchJsonReporter()],
},
},
resolve: {
alias: {
// mirrors tsconfig "@*": ["./*"] — Next.js webpack handles this automatically
"@src": path.resolve(__dirname, "./src"),
"@node_modules": path.resolve(__dirname, "./node_modules"),
},
},
});