-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvitest.config.ts
More file actions
48 lines (46 loc) · 1.56 KB
/
vitest.config.ts
File metadata and controls
48 lines (46 loc) · 1.56 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* Copyright (c) 2025 BadLabs
*
* Use of this software is governed by the Business Source License 1.1 included in the file LICENSE.txt.
*
* As of the Change Date specified in that file, in accordance with the Business Source License, use of this software will be governed by the Apache License, version 2.0.
*/
import { resolve } from 'node:path'
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
globals: true,
environment: 'node',
setupFiles: ['reflect-metadata'],
env: {
DEMO_AUTH_ENABLED: 'true', // Enable demo auth for tests
},
alias: {
'@badaitech/chaingraph-types': resolve(__dirname, './packages/chaingraph-types/src'),
'@badaitech/chaingraph-backend': resolve(__dirname, './packages/chaingraph-backend/src'),
'@badaitech/chaingraph-frontend': resolve(__dirname, './packages/chaingraph-frontend/src'),
'@badaitech/chaingraph-nodes': resolve(__dirname, './packages/chaingraph-nodes/src'),
'@badaitech/chaingraph-trpc': resolve(__dirname, './packages/chaingraph-trpc'),
'@badaitech/chaingraph-executor': resolve(__dirname, './packages/chaingraph-executor'),
'@badaitech/badai-api': resolve(__dirname, './packages/badai-api/src'),
},
exclude: [
'**/node_modules/**',
'**/dist/**',
'**/build/**',
'**/coverage/**',
'**/*.d.ts',
],
isolate: true,
typecheck: {
enabled: true,
tsconfig: './tsconfig.json',
},
pool: 'threads',
poolOptions: {
threads: {
isolate: true,
},
},
},
})