From af2b2df3e662223fc2234e93c7bccbd918e9469d Mon Sep 17 00:00:00 2001 From: Jakub Kosmydel <104823336+kosmydel@users.noreply.github.com> Date: Mon, 6 Nov 2023 10:37:55 +0100 Subject: [PATCH] fix tests --- __mocks__/fileMock.js | 1 + jest.config.js | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 __mocks__/fileMock.js diff --git a/__mocks__/fileMock.js b/__mocks__/fileMock.js new file mode 100644 index 000000000000..86059f362924 --- /dev/null +++ b/__mocks__/fileMock.js @@ -0,0 +1 @@ +module.exports = 'test-file-stub'; diff --git a/jest.config.js b/jest.config.js index c3125284837a..efd72d20694f 100644 --- a/jest.config.js +++ b/jest.config.js @@ -26,4 +26,7 @@ module.exports = { setupFiles: ['/jest/setup.js', './node_modules/@react-native-google-signin/google-signin/jest/build/setup.js'], setupFilesAfterEnv: ['@testing-library/jest-native/extend-expect', '/jest/setupAfterEnv.js'], cacheDirectory: '/.jest-cache', + moduleNameMapper: { + '\\.(lottie)$': '/__mocks__/fileMock.js', + }, };