diff --git a/examples/create-react-app/package.json b/examples/create-react-app/package.json
index da4fa0d9cf..606a2b2bff 100644
--- a/examples/create-react-app/package.json
+++ b/examples/create-react-app/package.json
@@ -8,7 +8,7 @@
"react-test-renderer": "^15.3.2"
},
"dependencies": {
- "apollo-client": "^0.5.12",
+ "apollo-client": "^0.6.0",
"graphql-tag": "^0.1.15",
"react": "^15.3.2",
"react-dom": "^15.3.2"
diff --git a/examples/create-react-app/src/Pokemon.test.js b/examples/create-react-app/src/Pokemon.test.js
index 6affcd4c38..a640b89d1a 100644
--- a/examples/create-react-app/src/Pokemon.test.js
+++ b/examples/create-react-app/src/Pokemon.test.js
@@ -74,23 +74,28 @@ describe('Pokemon enhancer', () => {
});
it('renders with an error correclty', (done) => {
- class Container extends React.Component {
- componentWillReceiveProps(props) {
- expect(props.data.error).toBeTruthy();
- done();
- }
- render() {
- return null;
- }
- };
- const ContainerWithData = withPokemon(Container);
- const output = renderer.create(
-
-
-
- );
+ try {
+ class Container extends React.Component {
+ componentWillReceiveProps(props) {
+ expect(props.data.error).toBeTruthy();
+ done();
+ }
+ render() {
+ return null;
+ }
+ };
+ const ContainerWithData = withPokemon(Container);
+ const output = renderer.create(
+
+
+
+ );
+ } catch (e) {
+ console.log(e);
+ }
+
});
});
diff --git a/examples/create-react-app/src/__snapshots__/Pokemon.test.js.snap b/examples/create-react-app/src/__snapshots__/Pokemon.test.js.snap
index cb373b3889..f2823d6aba 100644
--- a/examples/create-react-app/src/__snapshots__/Pokemon.test.js.snap
+++ b/examples/create-react-app/src/__snapshots__/Pokemon.test.js.snap
@@ -116,6 +116,21 @@ Object {
},
],
"kind": "Document",
+ "loc": Object {
+ "end": 98,
+ "source": Source {
+ "body": "
+ query GetPokemon($name: String!) {
+ pokemon(name: $name) {
+ name
+ image
+ }
+ }
+",
+ "name": "GraphQL",
+ },
+ "start": 3,
+ },
}
`;