Skip to content

Commit

Permalink
Update blog post react-test-renderer import (jestjs#1337)
Browse files Browse the repository at this point in the history
Official package implemented in facebook/react#7362
  • Loading branch information
iamdustan authored and cpojer committed Aug 1, 2016
1 parent 0ec5ec1 commit 28e423e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blog/2016-07-27-jest-14.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ One of the big open questions was how to write React tests efficiently. There ar
Together with the React team we created a new test renderer for React and added snapshot testing to Jest. Consider this [example test](https://github.com/facebook/jest/blob/master/examples/snapshot/__tests__/Link.react-test.js) for a simple [Link component](https://github.com/facebook/jest/blob/master/examples/snapshot/Link.react.js):

```javascript
import renderer from 'react/lib/ReactTestRenderer';
import renderer from 'react-test-renderer';
test('Link renders correctly', () => {
const tree = renderer.create(
<Link page="http://www.facebook.com">Facebook</Link>
Expand Down

0 comments on commit 28e423e

Please sign in to comment.