-
Notifications
You must be signed in to change notification settings - Fork 5
/
vitest.workspace.ts
41 lines (40 loc) · 961 Bytes
/
vitest.workspace.ts
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 { defineWorkspace } from "vitest/config";
export default defineWorkspace([
{
extends: "./vitest.config.ts",
test: {
setupFiles: "./setupTests.ts",
include: [
"src/components/**/*.test.{ts,tsx}",
"src/shared/**/*.test.{ts,tsx}",
"src/routing/**/*.test.{ts,tsx}",
],
name: "browser",
css: true,
browser: {
enabled: true,
name: "chromium",
headless: true,
provider: "playwright",
},
},
},
{
extends: "./vitest.config.ts",
test: {
include: [
"src/actions/**/*.test.ts",
"src/services/**/*.test.ts",
"src/sospeso/**/*.test.ts",
"src/auth/**/*.test.ts",
"src/pages/api/**/*.test.ts",
"src/pages/sitemap/*.test.ts",
"src/payment/**/*.test.ts",
"src/user/**/*.test.ts",
"src/*.test.ts",
],
name: "unit",
environment: "node",
},
},
]);