Skip to content

Commit c8f460c

Browse files
authored
Readme: Removes experimental from Jest snapshot
Per final comment in facebook#372 `Snapshot rendering should actually be pretty stable / useable after React 15.4.1. See this post for more info.`
1 parent da321b2 commit c8f460c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

packages/react-scripts/template/README.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ You can find the most recent version of this guide [here](https://github.com/fac
4848
- [Coverage Reporting](#coverage-reporting)
4949
- [Continuous Integration](#continuous-integration)
5050
- [Disabling jsdom](#disabling-jsdom)
51-
- [Experimental Snapshot Testing](#experimental-snapshot-testing)
51+
- [Snapshot Testing](#snapshot-testing)
5252
- [Editor Integration](#editor-integration)
5353
- [Developing Components in Isolation](#developing-components-in-isolation)
5454
- [Making a Progressive Web App](#making-a-progressive-web-app)
@@ -941,13 +941,11 @@ In contrast, **jsdom is not needed** for the following APIs:
941941
* [`TestUtils.createRenderer()`](https://facebook.github.io/react/docs/test-utils.html#shallow-rendering) (shallow rendering)
942942
* [`shallow()`](http://airbnb.io/enzyme/docs/api/shallow.html) in [Enzyme](http://airbnb.io/enzyme/index.html)
943943

944-
Finally, jsdom is also not needed for [snapshot testing](http://facebook.github.io/jest/blog/2016/07/27/jest-14.html). Longer term, this is the direction we are interested in exploring, but snapshot testing is [not fully baked yet](https://github.com/facebookincubator/create-react-app/issues/372) so we don’t officially encourage its usage yet.
944+
Finally, jsdom is also not needed for [snapshot testing](http://facebook.github.io/jest/blog/2016/07/27/jest-14.html).
945945

946-
### Experimental Snapshot Testing
946+
### Snapshot Testing
947947

948-
Snapshot testing is a new feature of Jest that automatically generates text snapshots of your components and saves them on the disk so if the UI output changes, you get notified without manually writing any assertions on the component output.
949-
950-
This feature is experimental and still [has major usage issues](https://github.com/facebookincubator/create-react-app/issues/372) so we only encourage you to use it if you like experimental technology. We intend to gradually improve it over time and eventually offer it as the default solution for testing React components, but this will take time. [Read more about snapshot testing.](http://facebook.github.io/jest/blog/2016/07/27/jest-14.html)
948+
Snapshot testing is a feature of Jest that automatically generates text snapshots of your components and saves them on the disk so if the UI output changes, you get notified without manually writing any assertions on the component output. [Read more about snapshot testing.](http://facebook.github.io/jest/blog/2016/07/27/jest-14.html)
951949

952950
### Editor Integration
953951

0 commit comments

Comments
 (0)