Skip to content

Commit 13b51c0

Browse files
committed
suppress core console error
1 parent e892aa7 commit 13b51c0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/core/test/lib/envelope.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@ describe('createSpanEnvelope', () => {
9595
client = new TestClient(options);
9696
setCurrentClient(client);
9797
client.init();
98+
99+
// We want to avoid console errors in the tests
100+
jest.spyOn(console, 'error').mockImplementation(() => {});
101+
});
102+
103+
afterEach(() => {
104+
jest.resetAllMocks();
98105
});
99106

100107
it('creates a span envelope', () => {

0 commit comments

Comments
 (0)