Open RohovDmytro opened 5 months ago
Running test via jest executes main file from package.json. It's a react-native code in my setup and this messes things around.
main
Workaround is to mock @app/index via jest.setup.js
const { jest } = require('@jest/globals'); jest.mock('@app/index.js', () => ({}));
Note to mock before requiring firebase-functions-test
firebase-functions-test
Running test via jest executes
main
file from package.json. It's a react-native code in my setup and this messes things around.