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
Do you want to request a feature or report a bug?
Feels like a bug, open to correction/context
What is the current behavior?
react-test-renderer/shallow throws if NODE_ENV===production; more details under "which versions of React" below
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template for React 16: https://jsfiddle.net/Luktwrdm/, template for React 15: https://jsfiddle.net/hmbg7e9w/).
does NODE_ENV=production jest count? ;) jk NODE_ENV=production jest with specs comparing snapshots of shallow rendered components utilizing libraries that change behavior when NODE_ENV=production (ex: recompose)
What is the expected behavior?
Able to shallow render components as they would/will be when built and deployed to production.
There should be no difference...between dev and prod versions of React.
which is great news in terms of react 👍 but disallowing prod version of shallow render doesn't cover the prod code path of other libraries/dependencies 🙏
The text was updated successfully, but these errors were encountered:
Do you want to request a feature or report a bug?
Feels like a bug, open to correction/context
What is the current behavior?
react-test-renderer/shallow throws if
NODE_ENV===production
; more details under "which versions of React" belowIf the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template for React 16: https://jsfiddle.net/Luktwrdm/, template for React 15: https://jsfiddle.net/hmbg7e9w/).
does
NODE_ENV=production jest
count? ;) jkNODE_ENV=production jest
with specs comparing snapshots of shallow rendered components utilizing libraries that change behavior whenNODE_ENV=production
(ex: recompose)What is the expected behavior?
Able to shallow render components as they would/will be when built and deployed to production.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
v15.x react-test-renderer/shallow runs happily, the check and error throw appears to be new in v16.x
Related: 7231 comment had a response of
which is great news in terms of react 👍 but disallowing prod version of shallow render doesn't cover the prod code path of other libraries/dependencies 🙏
The text was updated successfully, but these errors were encountered: