diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d61bfe77..77e58f54 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -18,11 +18,6 @@ jobs: uses: actions/checkout@v3 - name: Yarn install run: yarn - - name: Lint Reporter - uses: wearerequired/lint-action@v2.2.0 - with: - eslint: true - prettier: true - name: Typescript & Lint check run: yarn lint testing: diff --git a/__tests__/lib/link-meta.test.ts b/__tests__/lib/link-meta.test.ts index 8af14628..f0ca7a9d 100644 --- a/__tests__/lib/link-meta.test.ts +++ b/__tests__/lib/link-meta.test.ts @@ -73,13 +73,10 @@ describe('getLinkMeta', () => { { likelyType: LikelyType.AtpData, url: '/', - title: 'Bluesky', - description: 'A new kind of social network', }, { likelyType: LikelyType.AtpData, url: '/index.html', - title: 'Not found', }, { likelyType: LikelyType.Other, diff --git a/jest/jestSetup.js b/jest/jestSetup.js index c3f82a87..2629be2c 100644 --- a/jest/jestSetup.js +++ b/jest/jestSetup.js @@ -43,12 +43,6 @@ jest.mock('@bam.tech/react-native-image-resizer', () => ({ createResizedImage: jest.fn(), })) -import {View as mockedView} from 'react-native' -jest.mock('react-native-tab-view', () => ({ - ...jest.requireActual('react-native-tab-view'), - TabView: mockedView, -})) - jest.mock('@segment/analytics-react-native', () => ({ createClient: () => ({ add: jest.fn(), @@ -75,3 +69,8 @@ jest.mock('expo-media-library', () => ({ default: jest.fn(), usePermissions: jest.fn(() => [true]), })) + +jest.mock('lande', () => ({ + __esModule: true, // this property makes it work + default: jest.fn().mockReturnValue([['eng']]), +})) diff --git a/package.json b/package.json index 3c99d351..59ce481e 100644 --- a/package.json +++ b/package.json @@ -187,7 +187,7 @@ ], "modulePathIgnorePatterns": [ "__tests__/.*/__mocks__", - "e2e/.*" + "__e2e__/.*" ], "coveragePathIgnorePatterns": [ "/node_modules/",