From 1614e6bf5d2dccfec8fc20e979864077efcb2ed1 Mon Sep 17 00:00:00 2001 From: kirillzyusko Date: Wed, 18 Sep 2024 13:56:59 +0200 Subject: [PATCH] fix: unit tests --- jest/setup.ts | 3 +++ package-lock.json | 7 ++++--- package.json | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/jest/setup.ts b/jest/setup.ts index 51385ad19e45..212943712889 100644 --- a/jest/setup.ts +++ b/jest/setup.ts @@ -1,5 +1,6 @@ /* eslint-disable max-classes-per-file */ import '@shopify/flash-list/jestSetup'; +import type * as RNAppLogs from 'react-native-app-logs'; import 'react-native-gesture-handler/jestSetup'; import type * as RNKeyboardController from 'react-native-keyboard-controller'; import mockStorage from 'react-native-onyx/dist/storage/__mocks__'; @@ -75,6 +76,8 @@ jest.mock('react-native-reanimated', () => ({ jest.mock('react-native-keyboard-controller', () => require('react-native-keyboard-controller/jest')); +jest.mock('react-native-app-logs', () => require('react-native-app-logs/jest')); + jest.mock('@src/libs/actions/Timing', () => ({ start: jest.fn(), end: jest.fn(), diff --git a/package-lock.json b/package-lock.json index 86e08eb310fc..c30b0800cf9f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -79,7 +79,7 @@ "react-map-gl": "^7.1.3", "react-native": "0.75.2", "react-native-android-location-enabler": "^2.0.1", - "react-native-app-logs": "git+https://github.com/margelo/react-native-app-logs#214e8e59b2e112971976f1bc94d86b105aac3648", + "react-native-app-logs": "git+https://github.com/margelo/react-native-app-logs#656b9fe27df6849a55f289a4c6c8d163b7cdbdb4", "react-native-blob-util": "0.19.4", "react-native-collapsible": "^1.6.2", "react-native-config": "1.5.0", @@ -33760,8 +33760,9 @@ } }, "node_modules/react-native-app-logs": { - "version": "0.1.0", - "resolved": "git+ssh://git@github.com/margelo/react-native-app-logs.git#214e8e59b2e112971976f1bc94d86b105aac3648", + "version": "0.2.0", + "resolved": "git+ssh://git@github.com/margelo/react-native-app-logs.git#656b9fe27df6849a55f289a4c6c8d163b7cdbdb4", + "integrity": "sha512-GMvcOG/UsJB1kTQlYs53Ej4QfpRaPil64FAVHXNZu8+TwLoV6Y6bogB1kMK2aW12PAc9hMDqtKjg+Lv+pVN36A==", "workspaces": [ "example" ], diff --git a/package.json b/package.json index d5766dc55879..2588bbd9791c 100644 --- a/package.json +++ b/package.json @@ -136,7 +136,7 @@ "react-map-gl": "^7.1.3", "react-native": "0.75.2", "react-native-android-location-enabler": "^2.0.1", - "react-native-app-logs": "git+https://github.com/margelo/react-native-app-logs#214e8e59b2e112971976f1bc94d86b105aac3648", + "react-native-app-logs": "git+https://github.com/margelo/react-native-app-logs#656b9fe27df6849a55f289a4c6c8d163b7cdbdb4", "react-native-blob-util": "0.19.4", "react-native-collapsible": "^1.6.2", "react-native-config": "1.5.0",