-
-
Notifications
You must be signed in to change notification settings - Fork 389
Expand file tree
/
Copy pathvitest.config.ts
More file actions
36 lines (35 loc) · 1.3 KB
/
Copy pathvitest.config.ts
File metadata and controls
36 lines (35 loc) · 1.3 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
// vitest.config.ts
import { defineConfig } from 'vitest/config'
import path from 'path'
export default defineConfig({
resolve: {
alias: {
'@shared': path.resolve(__dirname, 'shared'),
'@main': path.resolve(__dirname, 'electron/main'),
'@earendil-works/pi-ai/compat': path.resolve(__dirname, 'src/services/agent/piCompatBrowser.ts'),
'@earendil-works/pi-agent-core/dist/agent.js': path.resolve(__dirname, 'node_modules/@earendil-works/pi-agent-core/dist/agent.js')
}
},
test: {
environment: 'node',
include: [
'electron/main/core/__tests__/**/*.test.ts',
'electron/main/aria/__tests__/**/*.test.ts',
'shared/__tests__/**/*.test.ts',
'src/down/motrix-integration/**/*.test.ts',
'src/down/integration/**/*.test.ts',
'scripts/__tests__/**/*.test.mjs',
'src/media-server/__tests__/**/*.test.ts',
'src/utils/__tests__/**/*.test.ts',
'src/aliapi/__tests__/**/*.test.ts',
'src/pikpak/__tests__/**/*.test.ts',
'src/quark/__tests__/**/*.test.ts',
'src/guangya/__tests__/**/*.test.ts',
'src/cloud139/__tests__/**/*.test.ts',
'src/dropbox/__tests__/**/*.test.ts',
'src/onedrive/__tests__/**/*.test.ts',
'src/box/__tests__/**/*.test.ts',
'clouddrive-cli/__tests__/**/*.test.ts',
],
},
})