react-native-testing-library icon indicating copy to clipboard operation
react-native-testing-library copied to clipboard

jest version compatibility

Open henrymoulton opened this issue 1 year ago • 1 comments

Ask your Question

I noticed in the React Native Community TypeScript Template it uses jest 26, and the latest version of this library asks to upgrade to jest 28.

What is the officially supported version of Jest by React Native?

henrymoulton avatar Sep 13 '22 16:09 henrymoulton

@henrymoulton afaik RN and Jest do not have such thing as supported version mapping, so you should be able to update Jest version independently of RN.

@thymikee maybe you have some more info why Typescript Template, but also RN template still uses Jest 26.6.x?

mdjastrzebski avatar Sep 19 '22 13:09 mdjastrzebski

Simply because no-one sent a PR to upgrade yet :D RN internally upgraded Jest to 29 recently, so it should be fairly straightforward to upgrade, without being blocked by internal Meta stuff.

thymikee avatar Sep 27 '22 15:09 thymikee

I'll close this issue, as it's not relevant to the RNTL, but happy to keep the conversation going :)

thymikee avatar Sep 27 '22 15:09 thymikee