Skip to content

Commit

Permalink
shot in the dark but maybe this fixes the tests?
Browse files Browse the repository at this point in the history
  • Loading branch information
Lms24 committed Sep 26, 2024
1 parent e94f006 commit ca986f6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/core/test/lib/utils/traceData.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,13 @@ const mockedScope = {

describe('getTraceData', () => {
beforeEach(() => {
jest.clearAllMocks();
jest.spyOn(SentryCoreExports, 'isEnabled').mockReturnValue(true);
});

afterEach(() => {
jest.clearAllMocks();
});

it('returns the tracing data from the span, if a span is available', () => {
{
jest.spyOn(SentryCoreTracing, 'getDynamicSamplingContextFromSpan').mockReturnValueOnce({
Expand Down

0 comments on commit ca986f6

Please sign in to comment.