forked from apollographql/react-apollo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into react-apollo-mockedprovider-fix
* master: (112 commits) chore(deps): update dependency danger to v3.8.8 chore(deps): update dependency enzyme to v3.5.0 chore(deps): update dependency apollo-client to v2.4.1 chore(deps): update dependency apollo-cache-inmemory to v1.2.9 chore(deps): update dependency apollo-cache to v1.1.16 chore(deps): update dependency @types/react to v16.4.12 chore(deps): update dependency rollup-plugin-commonjs to v9.1.6 chore(deps): update dependency @types/node to v10.9.2 chore(deps): update dependency react-scripts to v1.1.5 chore(deps): update dependency ts-jest to v23.1.4 Avoid importing lodash directly (apollographql#2045) type graphql.options.skip HOC property (apollographql#2208) Replace duplicate ObservableQueryFields types defined in apollo-client (apollographql#2281) Make mock links mock parameter readonly (apollographql#2284) test-utils: allow passing a custom cache object to `MockedProvider` (apollographql#2254) Query: Fix data is undefined on error (apollographql#1983) Don't mutate options object when calculating variables from props (apollographql#1968) Feature: add onSubscriptionData callback to <Subscription> (apollographql#1966) Changelog update Example of a mutation including tests (apollographql#1998) ...
- Loading branch information
Showing
80 changed files
with
3,058 additions
and
3,097 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 17 additions & 44 deletions
61
examples/components/src/__tests__/__snapshots__/app.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,34 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`App renders 1`] = ` | ||
<div> | ||
Loading | ||
</div> | ||
`; | ||
|
||
exports[`Character handles a loading state 1`] = ` | ||
<div> | ||
Loading | ||
</div> | ||
`; | ||
|
||
exports[`Character handles an error state 1`] = ` | ||
<h1> | ||
ERROR | ||
</h1> | ||
`; | ||
|
||
exports[`Character returns markup for a friend without an appearsIn 1`] = ` | ||
exports[`App renders data 1`] = ` | ||
<div> | ||
<div> | ||
<h3> | ||
r2d2 | ||
</h3> | ||
<h6> | ||
luke | ||
: | ||
newhope | ||
</h6> | ||
<h6> | ||
james | ||
: | ||
</h6> | ||
<div> | ||
<h3> | ||
r2d2 | ||
</h3> | ||
<h6> | ||
luke | ||
: | ||
newhope | ||
</h6> | ||
</div> | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`Character returns markup for a hero with no friends 1`] = ` | ||
exports[`App renders error 1`] = ` | ||
<div> | ||
<div> | ||
<h3> | ||
r2d2 | ||
</h3> | ||
</div> | ||
<h1> | ||
ERROR | ||
</h1> | ||
</div> | ||
`; | ||
|
||
exports[`Character returns markup for empty array of friends 1`] = ` | ||
exports[`App renders loading 1`] = ` | ||
<div> | ||
<div> | ||
<h3> | ||
r2d2 | ||
</h3> | ||
Loading | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`Character returns markup for null response 1`] = `<div />`; |
52 changes: 52 additions & 0 deletions
52
examples/components/src/__tests__/__snapshots__/character.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Character returns markup for a friend without an appearsIn 1`] = ` | ||
<div> | ||
<div> | ||
<div> | ||
<h3> | ||
r2d2 | ||
</h3> | ||
<h6> | ||
luke | ||
: | ||
newhope | ||
</h6> | ||
<h6> | ||
james | ||
: | ||
</h6> | ||
</div> | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`Character returns markup for a hero with no friends 1`] = ` | ||
<div> | ||
<div> | ||
<div> | ||
<h3> | ||
r2d2 | ||
</h3> | ||
</div> | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`Character returns markup for empty array of friends 1`] = ` | ||
<div> | ||
<div> | ||
<div> | ||
<h3> | ||
r2d2 | ||
</h3> | ||
</div> | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`Character returns markup for null response 1`] = ` | ||
<div> | ||
<div /> | ||
</div> | ||
`; |
Oops, something went wrong.