Repository navigation
Expand file tree
/
Copy pathvitest.config.ts
More file actions
46 lines (43 loc) · 1.58 KB
/
Copy pathvitest.config.ts
File metadata and controls
46 lines (43 loc) · 1.58 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
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
projects: [
// Core package - use its own vitest config
'./core',
// Web-app package - use its own vitest config
'./web-app',
// Extensions - each ships its own vitest config
'./extensions/assistant-extension',
'./extensions/conversational-extension',
'./extensions/download-extension',
'./extensions/llamacpp-extension',
// mlx depends on @janhq/tauri-plugin-mlx-api, which only resolves on
// macOS; skip its project elsewhere to avoid a resolve failure.
...(process.platform === 'darwin' ? ['./extensions/mlx-extension'] : []),
'./extensions/rag-extension',
'./extensions/vector-db-extension',
],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html', 'lcov'],
exclude: [
'docs',
'**/*/dist',
'node_modules',
'**/src/**/*.test.ts',
'**/src/**/*.test.tsx',
'**/src/test/**/*',
'src-tauri',
// The e2e suite is a separate package driven by WebdriverIO, not by
// vitest, so every line of it reads as uncovered and dilutes the total.
'e2e/**',
// The release-check scripts are run by node from workflows, never
// imported by a vitest suite, so they read as fully uncovered. Scoped
// to `check-*` rather than the whole tree so that a future `scripts/`
// module which is imported does not get dropped from the report by
// accident.
'scripts/check-*.mjs',
],
},
},
})