From c166784ff65688ac1fd338201a63db151d732955 Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Tue, 19 Nov 2024 10:30:33 +0100 Subject: [PATCH] Cleanup --- sdk/__tests__/RaygunClient.test.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sdk/__tests__/RaygunClient.test.tsx b/sdk/__tests__/RaygunClient.test.tsx index 69290a8..e8b733e 100644 --- a/sdk/__tests__/RaygunClient.test.tsx +++ b/sdk/__tests__/RaygunClient.test.tsx @@ -1,9 +1,6 @@ import AsyncStorage from '@react-native-async-storage/async-storage'; import { init, sendError } from '../src/RaygunClient'; import { RaygunClientOptions } from '../src/Types'; -import { cleanup } from '@testing-library/react-native'; - -// jest.useFakeTimers(); describe('RaygunClient', () => { beforeAll(() => { @@ -28,8 +25,6 @@ describe('RaygunClient', () => { fetch.mockClear(); }); - afterEach(cleanup); - it('should send error correctly', async () => { const error = new Error('Test error'); await sendError(error); @@ -52,9 +47,8 @@ describe('RaygunClient', () => { // failed to send error should be stored in AsyncStorage const storedErrors = await AsyncStorage.getItem('raygun4reactnative_local_storage'); expect(storedErrors).not.toBeNull(); - console.log(storedErrors); const errors = JSON.parse(storedErrors); expect(errors[0].Details.Error.Message).toBe('Failed error'); }); -}); \ No newline at end of file +});