()
| 118 | } |
| 119 | |
| 120 | async function restoreUseModelsModuleMocks() { |
| 121 | // Bun's mock.module() has no disposer, and mock.restore() does not undo module mocks. |
| 122 | // Restore the real modules so this file cannot poison later tests in the same process. |
| 123 | await mock.module(PROVIDERS_CONFIG_MODULE, () => actualProvidersConfigModule); |
| 124 | await mock.module(ROUTING_MODULE, () => actualRoutingModule); |
| 125 | await mock.module(API_MODULE, () => actualAPIModule); |
| 126 | await mock.module(POLICY_CONTEXT_MODULE, () => actualPolicyContextModule); |
| 127 | } |
| 128 | |
| 129 | let cleanupDom: (() => void) | null = null; |
| 130 |
no outgoing calls
no test coverage detected