about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/lint.yml5
-rw-r--r--__tests__/lib/link-meta.test.ts3
-rw-r--r--jest/jestSetup.js11
-rw-r--r--package.json2
4 files changed, 6 insertions, 15 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index d61bfe770..77e58f547 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 8af14628e..f0ca7a9d4 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 c3f82a872..2629be2cc 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 3c99d3510..59ce481ea 100644
--- a/package.json
+++ b/package.json
@@ -187,7 +187,7 @@
     ],
     "modulePathIgnorePatterns": [
       "__tests__/.*/__mocks__",
-      "e2e/.*"
+      "__e2e__/.*"
     ],
     "coveragePathIgnorePatterns": [
       "<rootDir>/node_modules/",