diff --git a/tests/unit/loginTest.js b/tests/unit/loginTest.tsx similarity index 84% rename from tests/unit/loginTest.js rename to tests/unit/loginTest.tsx index b63564ff2812..d5084299bb08 100644 --- a/tests/unit/loginTest.js +++ b/tests/unit/loginTest.tsx @@ -1,14 +1,12 @@ -/** - * @format - */ import React from 'react'; import 'react-native'; // Note: `react-test-renderer` renderer must be required after react-native. import renderer from 'react-test-renderer'; -import App from '../../src/App'; +import App from '@src/App'; // Needed for: https://stackoverflow.com/questions/76903168/mocking-libraries-in-jest jest.mock('react-native/Libraries/LogBox/LogBox', () => ({ + // eslint-disable-next-line @typescript-eslint/naming-convention __esModule: true, default: { ignoreLogs: jest.fn(),