-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvitest.integration.config.ts
More file actions
66 lines (65 loc) · 2.09 KB
/
Copy pathvitest.integration.config.ts
File metadata and controls
66 lines (65 loc) · 2.09 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/**
* Lane B: Integration-core
*
* DuckDB + fs + real artifacts. Requires native bindings.
* Runs on PR, parallelized.
*
* Includes:
* - Integration tests
* - DuckDB-using unit tests (mocked or real)
* - Golden tests
* - Contract tests (Python bridge)
*/
import { defineConfig } from 'vitest/config';
import { vitestResolveAliases } from './vitest.base';
export default defineConfig({
test: {
name: 'integration',
include: [
'packages/**/tests/integration/**/*.test.ts',
'packages/**/tests/integration/**/*.spec.ts',
'packages/**/tests/golden/**/*.test.ts',
'packages/**/tests/golden/**/*.spec.ts',
'packages/**/tests/contract/**/*.test.ts',
'packages/**/tests/contract/**/*.spec.ts',
// Unit tests that use DuckDB (real or mocked)
'packages/**/tests/unit/**/*duckdb*.test.ts',
'packages/**/tests/unit/**/*Duckdb*.test.ts',
'packages/**/tests/unit/**/*duckdb*.spec.ts',
'packages/**/tests/unit/**/*Duckdb*.spec.ts',
// Workflows lab-sweep (uses createTestDuckDB)
'packages/workflows/tests/unit/research/phases/lab-sweep-discovery.test.ts',
// Root smoke (fixtures, dist, subprocess)
'tests/smoke/opn-dsm-fixture-smoke.test.ts',
'tests/smoke/import-smoke.test.ts',
'tests/smoke/verify-boundaries-ast.test.ts',
// Market cap calculator (uses DuckDB)
'packages/market-cap-calculator/**/*.test.ts',
],
exclude: [
'node_modules',
'dist',
'**/node_modules/**',
'**/dist/**',
'**/tests/stress/**',
'**/*.stress.test.ts',
'**/*.stress.test.js',
],
environment: 'node',
globals: true,
clearMocks: true,
restoreMocks: true,
setupFiles: ['tests/setup.ts'],
testTimeout: 30000,
hookTimeout: 15000,
deps: {
inline: ['@qb-quantbot/simulation', '@qb-quantbot/monitoring', '@qb-quantbot/ingestion'],
},
coverage: { enabled: false },
},
resolve: { alias: vitestResolveAliases },
optimizeDeps: {
include: ['@qb-quantbot/simulation', '@qb-quantbot/monitoring', '@qb-quantbot/ingestion'],
exclude: [],
},
});