79678410

Date: 2025-06-25 02:29:48
Score: 1.5
Natty:
Report link

I just needed to add a direct mock by pulling the path of my NativeModule.

This can be done either in a setupFile or directly in the specific test.

jest.mock("../../specs/NativeAppInfo", () => ({
  getAppVersion: jest.fn(() => "1.0.0"),
}));
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Gabriel Logan