Running tests imports main from package and fails to exec
RohovDmytro opened this issue · comments
rohovdmytro commented
rohovdmytro commented
Workaround is to mock @app/index via jest.setup.js
const { jest } = require('@jest/globals');
jest.mock('@app/index.js', () => ({}));
rohovdmytro commented
Note to mock before requiring firebase-functions-test