(opts?: Partial<TestClientOptions>)
| 25 | const SCOPE_TRACE_ID = '12345678901234567890123456789012'; |
| 26 | |
| 27 | function setupClient(opts?: Partial<TestClientOptions>): Client { |
| 28 | getCurrentScope().setPropagationContext({ |
| 29 | traceId: SCOPE_TRACE_ID, |
| 30 | sampleRand: Math.random(), |
| 31 | }); |
| 32 | |
| 33 | const options = getDefaultTestClientOptions({ |
| 34 | dsn, |
| 35 | tracesSampleRate: 1, |
| 36 | ...opts, |
| 37 | }); |
| 38 | const client = new TestClient(options); |
| 39 | setCurrentClient(client); |
| 40 | client.init(); |
| 41 | |
| 42 | return client; |
| 43 | } |
| 44 | |
| 45 | describe('getTraceData', () => { |
| 46 | beforeEach(() => { |
no test coverage detected