Preset react-native not found (in react native typescript project) #4273
-
I've upgraded react-native from 0.70 to 0.73 and done all the package upgrades suggested by the upgrade helper. Everything is building and running but I've broken my test suite, getting the error in the title. While the latest ts-jest documentation suggests that the jest.config.js preset should be "ts-jest", the React Native specific documentation suggests the preset should be "react-native", as it was before all my upgrades. Dev dependency changes which have "broken" my test suite are as follows: while my jest.config.js is unchanged as below, including the breaking preset:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Found the issue, I had a legacy
Removing that allows the test to run as normal. |
Beta Was this translation helpful? Give feedback.
Found the issue, I had a legacy
resolutions
part of my package.json file with these package specs (I cannot recall the reason why these were needed):Removing that allows the test to run as normal.