Closed Clumsy-Coder closed 4 years ago
i have the same versions of rn, async-storage and redux-persist as you and i get the error when trying to upgrade to jest version 26.2.2
from 25.5.1
mocking createPersistoid
in a setup file has worked for me
jest.mock("redux-persist/lib/createPersistoid", () =>
jest.fn(() => ({
update: jest.fn(),
flush: jest.fn(),
}))
);
@frankenthumbs the solution works. thanks
I created a PR that contains the solution in README.md
Problem
When running jest tests, a strange error is returned.
Debug info
package.json
jest.config.js
jest.setup.js