-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy pathvitest.config.ts
More file actions
41 lines (40 loc) · 957 Bytes
/
vitest.config.ts
File metadata and controls
41 lines (40 loc) · 957 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
35
36
37
38
39
40
41
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
alias: {
"@fluent/bundle": "/fluent-bundle/src/index.ts",
"@fluent/dedent": "/fluent-dedent/src/index.ts",
"@fluent/sequence": "/fluent-sequence/src/index.ts",
},
projects: [
{
extends: true,
test: {
name: "common",
include: ["fluent-*/test/*_test.js"],
exclude: ["fluent-dom/", "fluent-react/"],
globals: true,
environment: "node",
},
},
{
extends: true,
test: {
name: "dom",
include: ["fluent-dom/test/*_test.js"],
globals: true,
environment: "jsdom",
},
},
{
extends: true,
test: {
name: "react",
include: ["fluent-react/test/*.test.jsx"],
globals: true,
environment: "jsdom",
},
},
],
},
});