This repository has been archived by the owner on Jul 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Populate exchange * Fix linting * Add missing snapshots * Use heler fns * Add imports * Add types for error codes (still not very clear)
- Loading branch information
1 parent
2e09954
commit 36452f2
Showing
6 changed files
with
876 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`on (query w/ fragment) -> mutation mutation query matches snapshot 1`] = ` | ||
"mutation MyMutation { | ||
addTodo { | ||
...Todo_PopulateFragment_0 | ||
} | ||
} | ||
fragment Todo_PopulateFragment_0 on Todo { | ||
...TodoFragment | ||
} | ||
fragment TodoFragment on Todo { | ||
id | ||
text | ||
} | ||
" | ||
`; | ||
|
||
exports[`on (query w/ unused fragment) -> mutation mutation query matches snapshot 1`] = ` | ||
"mutation MyMutation { | ||
addTodo { | ||
...Todo_PopulateFragment_0 | ||
} | ||
} | ||
fragment Todo_PopulateFragment_0 on Todo { | ||
id | ||
text | ||
} | ||
" | ||
`; | ||
|
||
exports[`on mutation mutation query matches snapshot 1`] = ` | ||
"mutation MyMutation { | ||
addTodo { | ||
__typename | ||
} | ||
} | ||
" | ||
`; | ||
|
||
exports[`on query -> (mutation w/ interface return type) mutation query matches snapshot 1`] = ` | ||
"mutation MyMutation { | ||
removeTodo { | ||
...Todo_PopulateFragment_0 | ||
...User_PopulateFragment_0 | ||
} | ||
} | ||
fragment Todo_PopulateFragment_0 on Todo { | ||
id | ||
name | ||
} | ||
fragment User_PopulateFragment_0 on User { | ||
id | ||
text | ||
} | ||
" | ||
`; | ||
|
||
exports[`on query -> (mutation w/ union return type) mutation query matches snapshot 1`] = ` | ||
"mutation MyMutation { | ||
updateTodo { | ||
...User_PopulateFragment_0 | ||
...Todo_PopulateFragment_0 | ||
} | ||
} | ||
fragment User_PopulateFragment_0 on User { | ||
id | ||
text | ||
} | ||
fragment Todo_PopulateFragment_0 on Todo { | ||
id | ||
name | ||
} | ||
" | ||
`; | ||
|
||
exports[`on query -> mutation mutation query matches snapshot 1`] = ` | ||
"mutation MyMutation { | ||
addTodo { | ||
...Todo_PopulateFragment_0 | ||
...Todo_PopulateFragment_1 | ||
} | ||
} | ||
fragment Todo_PopulateFragment_0 on Todo { | ||
id | ||
text | ||
creator { | ||
id | ||
name | ||
} | ||
} | ||
fragment Todo_PopulateFragment_1 on Todo { | ||
text | ||
} | ||
" | ||
`; | ||
|
||
exports[`on query -> teardown -> mutation mutation query matches snapshot 1`] = ` | ||
"mutation MyMutation { | ||
addTodo { | ||
__typename | ||
} | ||
} | ||
" | ||
`; |
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
Oops, something went wrong.