Commit Graph

28 Commits

Author SHA1 Message Date
Jake
345094df2c initial notes 2018-06-20 16:34:34 -04:00
Jake Dawkins
528ec52a94 React Apollo Testing (#164)
<!--**Pull Request Labels**

While not necessary, you can help organize our pull requests by labeling this issue when you open it.  To add a label automatically, simply [x] mark the appropriate box below:

- [ ] feature
- [ ] blocking
- [ ] docs

To add a label not listed above, simply place `/label another-label-name` on a line by itself.
-->

# Testing React Apollo 

This is a guide specifically for testing React Apollo. Based off of @excitement-engineer's (great) original work [in this PR](https://github.com/apollographql/apollo-client/pull/3309).

**A few notes:**
- I'm keeping this separate from server testing, since combined I think they'll be too long. **I'm open to discussion on this, though**.
- I added the guide here rather than React Apollo's docs, since I feel like we have a good set of `guides` here, and would hate for this to be missing. I also feel like the view logic may transfer to other UI integrations, but I don't have a lot of insight into that.
- I went with using `wait(0)` instead of refactoring and counting renders like some other exmples do, for simplicity. I wanted to lower the barrier of entry for testing as much as possible.
- I used `react-test-renderer` instead of Enzyme or anything else, just to keep the toolset as simple as possible.
2018-06-14 11:12:41 -04:00
James Baxley
a525a78a4f fix syntax for query type in breaking change example 2018-06-13 09:14:36 -04:00
Dhaivat Pandya
6d1028be03 Revert "added schema organization article"
This reverts commit 1b778a6a1a.
2018-06-01 00:00:51 -07:00
Dhaivat Pandya
1b778a6a1a added schema organization article 2018-05-31 23:57:09 -07:00
Loren ☺️
08b032b637 Fix typo in access-control.md 2018-05-31 22:22:01 -04:00
Peggy Rayzis
e0bd90e79e Added more Engine screenshots to monitoring 2018-05-31 14:15:09 -04:00
Peggy Rayzis
0d990b305f Updated state mgmt 2018-05-31 13:44:25 -04:00
Jesse Rosenberger
8e2e2b7883 Stop collecting "collections".
This was truly an embarrassing collection of "collections".

Addresses: @sashko's https://github.com/apollographql/apollo/pull/156#pullrequestreview-124870960
2018-05-31 19:30:54 +03:00
Jesse Rosenberger
7a09ad19de Add warning about sharing an input type between a query and a mutation.
Addresses: @peggyrayzis' https://github.com/apollographql/apollo/pull/156#discussion_r192148408
2018-05-31 19:24:58 +03:00
Jesse Rosenberger
b56da257a8 schema-design: comment out gql section.
While we have some concrete reasons to recommend this, we haven't let the
concrete dry yet.

We'll re-surface this information in the future.
2018-05-31 18:55:46 +03:00
Jesse Rosenberger
662e20acc8 schema-design: Address input type feedback. 2018-05-31 18:42:32 +03:00
Jesse Rosenberger
fc187b53f5 schema-design: Address mutation and mutation response feedback. 2018-05-31 16:38:54 +03:00
Jesse Rosenberger
06550cd33e schema-design: intro edits. 2018-05-31 14:55:55 +03:00
Jesse Rosenberger
d921eef5d5 Change "API versioning" to "Versioning".
The other titles in this section could mostly also have "API" in front of
them, so it seems better to leave this off (e.g. "API Security", "API
Monitoring", etc.).
2018-05-31 14:24:45 +03:00
Jesse Rosenberger
5c3d7b1ac4 Correct field breakdown which was referring to a different example.
Addresses: @stubailo's https://github.com/apollographql/apollo/pull/155#discussion_r191958499
2018-05-31 13:47:29 +03:00
Peggy Rayzis
4c5ffe2200 Comment out extra topics for monitoring 2018-05-31 00:39:43 -04:00
Sashko Stubailo
0aae985388 Copy editing and style changes to the schema design page 2018-05-30 16:16:48 -07:00
Jesse Rosenberger
4fa9674ec6 Get rid of double-negative in schema design structure. 2018-05-30 23:37:48 +03:00
Jesse Rosenberger
7bddcee9aa Reorganize sections on guides/schema-design.md to be more strong. 2018-05-30 23:35:04 +03:00
Jesse Rosenberger
8ea522c6e5 Update schema design with latest. 2018-05-30 18:32:48 +03:00
Peggy Rayzis
1b402ab322 Fix headings & ids 2018-05-30 02:31:10 -04:00
Peggy Rayzis
c89a7bed43 Added versioning guide 2018-05-30 02:20:53 -04:00
Peggy Rayzis
8b009be444 Almost done section on benefits, started state mgmt 2018-05-30 02:18:57 -04:00
Peggy Rayzis
a3c3f09fb7 Add descriptions to all articles 2018-05-29 23:54:12 -04:00
Peggy Rayzis
76c3d56ed0 Title for state mgmt 2018-05-29 14:45:43 -04:00
Peggy Rayzis
8c5b4a48a6 Added all the content from Google docs 2018-05-29 14:43:10 -04:00
Jesse Rosenberger
6d40655303 Introduce guides, practices and fundamentals. 2018-05-29 20:57:13 +03:00