Skip to content

Commit 9c024b5

Browse files
committed
Tests removal
1 parent a918276 commit 9c024b5

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

packages/core/test/tracing/timetodisplay.test.tsx

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -290,24 +290,6 @@ describe('TimeToDisplay', () => {
290290
expect(getInitialDisplaySpanJSON(client.event!.spans!)!.timestamp).toEqual(initialDisplayEndTimestampMs / 1_000);
291291
expect(getFullDisplaySpanJSON(client.event!.spans!)!.timestamp).toEqual(initialDisplayEndTimestampMs / 1_000);
292292
});
293-
294-
test('should not log a warning if native component exists and not in new architecture', async () => {
295-
(isTurboModuleEnabled as jest.Mock).mockReturnValue(false);
296-
297-
TestRenderer.create(<TimeToInitialDisplay record={true} />);
298-
await jest.runOnlyPendingTimersAsync(); // Flush setTimeout.
299-
300-
expect(logger.warn).not.toHaveBeenCalled();
301-
});
302-
303-
test('should log a warning if in new architecture', async () => {
304-
(isTurboModuleEnabled as jest.Mock).mockReturnValue(true);
305-
TestRenderer.create(<TimeToInitialDisplay record={true} />);
306-
await jest.runOnlyPendingTimersAsync(); // Flush setTimeout.
307-
308-
expect(logger.warn).toHaveBeenCalledWith(
309-
'TimeToInitialDisplay and TimeToFullDisplay are not supported on the web, Expo Go and New Architecture. Run native build or report an issue at https://github.com/getsentry/sentry-react-native');
310-
});
311293
});
312294

313295
function getInitialDisplaySpanJSON(spans: SpanJSON[]) {

0 commit comments

Comments
 (0)