(options?: Partial<NodeClientOptions>)
| 16 | } |
| 17 | |
| 18 | export function mockSdkInit(options?: Partial<NodeClientOptions>) { |
| 19 | resetGlobals(); |
| 20 | init({ |
| 21 | dsn: PUBLIC_DSN, |
| 22 | defaultIntegrations: false, |
| 23 | // We are disabling client reports because we would be acquiring resources with every init call and that would leak |
| 24 | // memory every time we call init in the tests |
| 25 | sendClientReports: false, |
| 26 | ...options, |
| 27 | }); |
| 28 | } |
| 29 | |
| 30 | export function cleanupOtel(_provider?: BasicTracerProvider): void { |
| 31 | const provider = getProvider(_provider); |
no test coverage detected