After uplifting to React 16.12.0 all of my jest tests that do a shallow rendering and user snapshots started to fail because the name of the component is now rendered as
An example is a component that with React 16.11 rendered in the snapshot like this:
After uplifting to v16.12 it renders like this:
These components are using React-Redux v7.1.1
Steps to reproduce the behavior:
Ideally a Memo component would render as it did prior to React 16.12
System:
OS: macOS Mojave 10.14.6
CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
Binaries:
Node: 8.9.2 - ~/.nvm/versions/node/v8.9.2/bin/node
npm: 6.12.1 - ~/.nvm/versions/node/v8.9.2/bin/npm
npmPackages:
jest: ^24.8.0 => 24.9.0
The fix is on master and will be released with v25: https://github.com/facebook/jest/pull/9196
Is there a scheduled release date for v25?
Most helpful comment
Is there a scheduled release date for v25?