-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathvitest.config.js
More file actions
32 lines (31 loc) · 1.09 KB
/
vitest.config.js
File metadata and controls
32 lines (31 loc) · 1.09 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
import { playwright } from "@vitest/browser-playwright";
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
projects: [
{
test: {
name: "node",
environment: "node",
typecheck: { enabled: true },
include: ["test/**/*.js", "test/**/*.test.js"],
exclude: ["test/test_index.js", "test/utils/**"],
coverage: { provider: "v8" },
},
},
{
test: {
name: "browser-tests",
include: ["test/**/*.js", "test/**/*.test.js"],
exclude: ["test/test_index.js", "test/utils/**"],
browser: {
enabled: true,
provider: playwright(),
instances: [{ browser: "chromium" }, { browser: "firefox" }, { browser: "webkit" }],
headless: true,
},
},
},
],
},
});