Skip to content

Commit

Permalink
Merge pull request #37031 from ruben-rebelo/ts-migration/unit-loginTest
Browse files Browse the repository at this point in the history
[No QA][TS migration] Migrate loginTest into Typescript
  • Loading branch information
marcaaron authored Feb 28, 2024
2 parents e07156c + 59cb2e2 commit 130eeed
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 130eeed

Please sign in to comment.