From 28e423efec2d050d21224eb9e5b6e969de5048a7 Mon Sep 17 00:00:00 2001 From: Dustan Kasten Date: Mon, 1 Aug 2016 01:48:18 -0400 Subject: [PATCH] Update blog post react-test-renderer import (#1337) Official package implemented in https://github.com/facebook/react/pull/7362 --- blog/2016-07-27-jest-14.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/2016-07-27-jest-14.md b/blog/2016-07-27-jest-14.md index b9913cd4b513..7ff88d46f5f2 100644 --- a/blog/2016-07-27-jest-14.md +++ b/blog/2016-07-27-jest-14.md @@ -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( Facebook