-
-
Notifications
You must be signed in to change notification settings - Fork 175
Expand file tree
/
Copy pathvitest.config.ts
More file actions
executable file
·34 lines (31 loc) · 684 Bytes
/
vitest.config.ts
File metadata and controls
executable file
·34 lines (31 loc) · 684 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
29
30
31
32
33
34
import { defineConfig } from "vitest/config";
import { resolve } from 'node:path';
import { playwright } from "@vitest/browser-playwright";
export default defineConfig({
resolve: {
alias: {
"~": resolve(__dirname, "src"),
},
},
build: {
minify: 'oxc',
},
test: {
css: true,
globals: true,
coverage: {
provider: "istanbul",
reporter: ["html", "text", "lcov"],
enabled: true,
include: ["src/**/*.{ts,tsx}"],
exclude: ["src/util/init.ts"],
},
browser: {
enabled: true,
provider: playwright({}),
instances: [{ browser: "chromium" }],
ui: false,
headless: true,
},
},
});