-
Notifications
You must be signed in to change notification settings - Fork 0
/
vitest.workspace.mts
43 lines (42 loc) · 1.16 KB
/
vitest.workspace.mts
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
42
43
import { defineWorkspace } from "vitest/config";
import { config } from "dotenv";
// defineWorkspace provides a nice type hinting DX
export default defineWorkspace([
{
extends: "apps/io-session-manager/vite.config.mts",
test: {
name: "session-manager",
include: ["apps/io-session-manager/**/__tests__/*.spec.ts"],
environment: "node",
env: {
...config({ path: "apps/io-session-manager/env.example" }).parsed,
SAML_KEY_PATH: "apps/io-session-manager/certs/key.pem",
SAML_CERT_PATH: "apps/io-session-manager/certs/cert.pem",
},
},
},
{
extends: "apps/io-fast-login/vite.config.mts",
test: {
name: "fast-login",
include: ["apps/io-fast-login/**/__tests__/*.spec.ts"],
environment: "node",
},
},
{
extends: "apps/io-lollipop/vite.config.mts",
test: {
name: "lollipop",
include: ["apps/io-lollipop/**/__tests__/*.test.ts"],
environment: "node",
},
},
{
extends: "apps/io-web-profile/vite.config.mts",
test: {
name: "io-web-profile",
include: ["apps/io-web-profile/**/__tests__/*.test.ts"],
environment: "node",
},
},
]);