You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since upgraded to Expo SDK 38, I noticed some warnings in console when executing jest. The jest-preset.js file in jest-expo is called twice, it is due to a change since jest@25.
The preset is built by mutating the react-native preset, leading to warnings on the second pass and a corrupted output. The preset should be built in a immutable way.
Environment - output of expo diagnostics & the platform(s) you're targeting
Expected react-native/jest-preset to define transform[^.+\.(bmp|gif|jpg|jpeg|mp4|png|psd|svg|webp)$]
react-native/jest-preset contained different transformIgnorePatterns than expected
Workaround
yarn add jest@^24.0.0
Launch tests using this command: node ./node_modules/jest/bin.jest.js
The text was updated successfully, but these errors were encountered:
Hi @alex-fournier! Thanks for the issue report and a PR 馃槃 Do you know what change could cause this? I went over the changelog for 25.x.x, but I can't find anything that might have affected this.
馃悰 Bug Report
Summary of Issue (just a few sentences)
Since upgraded to Expo SDK 38, I noticed some warnings in console when executing jest. The jest-preset.js file in jest-expo is called twice, it is due to a change since jest@25.
The preset is built by mutating the react-native preset, leading to warnings on the second pass and a corrupted output. The preset should be built in a immutable way.
Environment - output of
expo diagnostics
& the platform(s) you're targetingReproducible Demo
expo init -t tabs jest-demo
cd jest-demo
yarn test
Warnings showing in console:
Workaround
yarn add jest@^24.0.0
node ./node_modules/jest/bin.jest.js
The text was updated successfully, but these errors were encountered: