firebase-functions-test
firebase-functions-test copied to clipboard
Running tests imports main from package and fails to exec
trafficstars
Running test via jest executes main file from package.json. It's a react-native code in my setup and this messes things around.
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