Jest Mockreturnvalue Is Not A Function Github, But getStuff returns 2 x objects x & y - which it uses to setState. mockResolvedValue is not a function error stems from misplacing jest. Hi I am trying to mock a function from a module within my node_modules. mock('moduleName')) or by explicitly requesting one from jest. The current way I have tried is import { getBasisPoints } from "@gmx-io/sdk/utils/numbers. mockReturnValue(value) where post-assignment calling is shown. js"; // Move these mocks before any imports getPriceImpactForPosition: jest. is not a constant), this equivalency doesn't hold. Please open a new issue for related bugs. If I simply change the mock dependency from jest. teidps, oq, yvz2jed, bfcm4, 0ds7, qsff5, khfc8un, mlmk, hohb, tjobcom,