Repository navigation
Expand file tree
/
Copy pathvitest.uta-live.config.ts
More file actions
45 lines (40 loc) · 1.66 KB
/
Copy pathvitest.uta-live.config.ts
File metadata and controls
45 lines (40 loc) · 1.66 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
import { fileURLToPath } from 'node:url'
import { resolve, dirname } from 'node:path'
if (process.env.OPENALICE_UTA_LIVE_PAPER !== '1') {
throw new Error('UTA live-paper tests submit real orders to configured demo/paper accounts. Set OPENALICE_UTA_LIVE_PAPER=1 to run.')
}
const __dirname = dirname(fileURLToPath(import.meta.url))
// Live-paper acceptance deliberately does not load vitest.setup.ts because it
// must resolve the verified demo/paper accounts from the real local config.
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'),
}
export default {
resolve: {
alias: workspaceAliases,
},
test: {
include: [
'tests/integration/broker-alpaca-paper/**/*.spec.*',
'tests/integration/broker-bybit-paper/**/*.spec.*',
'tests/integration/broker-hyperliquid-paper/**/*.spec.*',
'tests/integration/broker-ibkr-paper/**/*.spec.*',
'tests/integration/broker-okx-paper/**/*.spec.*',
'tests/integration/ibkr-wire-paper/**/*.spec.*',
'tests/integration/bybit-diagnostic/**/*.spec.*',
],
testTimeout: 60_000,
fileParallelism: false,
pool: 'forks',
singleFork: true,
env: {
CCXT_INIT_RETRIES: '2',
CCXT_INIT_RETRY_BASE_MS: '250',
},
},
}