forked from NangoHQ/nango
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.integration.config.ts
More file actions
40 lines (37 loc) · 1.76 KB
/
Copy pathvite.integration.config.ts
File metadata and controls
40 lines (37 loc) · 1.76 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
/// <reference types="vitest" />
// Configure Vitest (https://vitest.dev/config/)
import { defaultExclude, defineConfig } from 'vitest/config';
process.env.TZ = 'UTC';
export default defineConfig({
test: {
include: ['**/*.integration.{test,spec}.?(c|m)[jt]s?(x)'],
// Vitest 4 dropped dist/** from its defaultExclude, so compiled test files
// built into packages/*/dist get collected and run as duplicates. Re-add it.
exclude: [...defaultExclude, '**/dist/**'],
globalSetup: './tests/setup.ts',
setupFiles: './tests/setupFiles.ts',
testTimeout: 20000,
hookTimeout: 20000,
env: {
NANGO_ENCRYPTION_KEY: 'RzV4ZGo5RlFKMm0wYWlXdDhxTFhwb3ZrUG5KNGg3TmU=',
NANGO_LOGS_ENABLED: 'true',
NANGO_LOGS_ES_PREFIX: 'test',
FLAG_PLAN_ENABLED: 'true',
ORCHESTRATOR_SERVICE_URL: 'http://orchestrator',
RUNNER_NODE_ID: '1',
FLAG_API_RATE_LIMIT_ENABLED: 'false',
FLAG_AUTH_ROLES_ENABLED: 'true',
// Used by allProxy.integration.test.ts denylist case; must be set before server modules load
NANGO_PROXY_BASE_URL_OVERRIDE_DENYLIST: JSON.stringify(['denylisted-proxy-test.invalid']),
// Opens the per-request `source=clickhouse` override gate so
// getBillingUsage.integration.test.ts can exercise the CH path.
// No effect on default behavior — every other request without the
// explicit override still resolves to Orb.
FLAG_ALLOW_OVERRIDE_GETUSAGE_SERVICE: 'true'
},
fileParallelism: false,
pool: 'forks',
// Vitest 4 removed test.poolOptions; poolOptions.forks.singleFork is now maxWorkers: 1.
maxWorkers: 1
}
});