Skip to content

Commit b51915c

Browse files
committed
shot in the dark but maybe this fixes the tests?
1 parent 6453d88 commit b51915c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/core/test/lib/utils/traceData.test.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@ const mockedScope = {
2424

2525
describe('getTraceData', () => {
2626
beforeEach(() => {
27-
jest.clearAllMocks();
2827
jest.spyOn(SentryCoreExports, 'isEnabled').mockReturnValue(true);
2928
});
29+
30+
afterEach(() => {
31+
jest.clearAllMocks();
32+
});
33+
3034
it('returns the tracing data from the span, if a span is available', () => {
3135
{
3236
jest.spyOn(SentryCoreTracing, 'getDynamicSamplingContextFromSpan').mockReturnValueOnce({

0 commit comments

Comments
 (0)