(config: SerializedConfig)
| 9 | |
| 10 | let globalSetup = false |
| 11 | export async function setupCommonEnv(config: SerializedConfig): Promise<void> { |
| 12 | setupDefines(config) |
| 13 | setupEnv(config.env) |
| 14 | |
| 15 | if (globalSetup) { |
| 16 | return |
| 17 | } |
| 18 | |
| 19 | globalSetup = true |
| 20 | setSafeTimers() |
| 21 | |
| 22 | if (config.globals) { |
| 23 | (await import('../integrations/globals')).registerApiGlobally() |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | function setupDefines(config: SerializedConfig) { |
| 28 | for (const key in config.defines) { |
no test coverage detected