Repository navigation
Expand file tree
/
Copy pathvitest.external.config.ts
More file actions
43 lines (40 loc) · 1.63 KB
/
Copy pathvitest.external.config.ts
File metadata and controls
43 lines (40 loc) · 1.63 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
import { fileURLToPath } from 'node:url'
import { resolve, dirname } from 'node:path'
const __dirname = dirname(fileURLToPath(import.meta.url))
const workspaceAliases = {
'@': resolve(__dirname, './src'),
'@traderalice/guardian-runtime': resolve(__dirname, './packages/guardian-runtime/src/index.ts'),
'@traderalice/connector-protocol': resolve(__dirname, './packages/connector-protocol/src/index.ts'),
'@traderalice/ibkr': resolve(__dirname, './packages/ibkr/src/index.ts'),
'@traderalice/uta-protocol': resolve(__dirname, './packages/uta-protocol/src/index.ts'),
'@traderalice/opentypebb': resolve(__dirname, './packages/opentypebb/src/index.ts'),
}
// Explicit read-only integration lane. These tests may contact public providers,
// a locally running TWS/Gateway, or APIs backed by keys in the local OpenAlice
// config, but they never submit broker orders. It deliberately does not load
// vitest.setup.ts because that setup replaces the real local configuration root.
export default {
resolve: {
alias: workspaceAliases,
},
test: {
include: [
'tests/integration/broker-market-data/**/*.spec.*',
'tests/integration/hyperliquid-market-data/**/*.spec.*',
'tests/integration/ibkr-wire-readonly/**/*.spec.*',
'tests/integration/market-data-providers/**/*.spec.*',
'tests/integration/market-data-routes/**/*.spec.*',
'tests/integration/twse-provider/**/*.spec.*',
],
testTimeout: 60_000,
fileParallelism: false,
pool: 'forks',
singleFork: true,
env: {
CCXT_E2E: '1',
TWSE_LIVE: '1',
CCXT_INIT_RETRIES: '2',
CCXT_INIT_RETRY_BASE_MS: '250',
},
},
}