Skip to content

Commit

Permalink
[TS migration] Migrate loginTest into Typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben-rebelo committed Feb 21, 2024
1 parent c261148 commit 59cb2e2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/unit/loginTest.js → tests/unit/loginTest.tsx
Original file line number Diff line number Diff line change
@@ -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(),
Expand Down

0 comments on commit 59cb2e2

Please sign in to comment.