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?
This is probably some kind of bug with our tests.
What is the current behavior?
When I run npm run test ReactNative there are two failing snapshot tests. The failures have to do with escape characters that seem to be missing from the generated snapshot. See the below screenshot:
This may be related to the jest version I have installed - ran yarn install and then npm run test ReactNative and got the following message:
Outdated snapshot: No snapshot header found. Jest 19 introduced versioned snapshots to ensure all developers on a project are using the same version of Jest. Please update all snapshots during this upgrade of Jest.
Warning: Before you upgrade snapshots, we recommend that you revert any local changes to tests or other code, to ensure that you do not store invalid state.
Going to try rm -rf node_modules && yarn install && npm run test ReactNative and see if that helps.
Pretty sure I figured it out - I had Jest v20.0.0 installed globally, and for some reason I think it was being used to run the tests in React, even though our package.json has "jest": "^19.0.1",.
I uninstalled the global version of Jest, ran the tests on master, and they pass.
Do you want to request a feature or report a bug?
This is probably some kind of bug with our tests.
What is the current behavior?
When I run
npm run test ReactNative
there are two failing snapshot tests. The failures have to do with escape characters that seem to be missing from the generated snapshot. See the below screenshot: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: https://jsfiddle.net/84v837e9/).
On my machine -
npm run test ReactNative
, on the latest master branch.What is the expected behavior?
The snapshot tests should pass, just as they are passing in CircleCI. https://circleci.com/gh/facebook/react/3237
The text was updated successfully, but these errors were encountered: