https://github.com/zth/relay-modern-flow-jest-example
Example of testing a Relay Modern app using Flow, Jest, react-testing-library and graphql-query-test-mock.
https://github.com/zth/relay-modern-flow-jest-example
flow flowtype jest react react-testing-library relay-modern
Last synced: about 2 months ago
JSON representation
Example of testing a Relay Modern app using Flow, Jest, react-testing-library and graphql-query-test-mock.
- Host: GitHub
- URL: https://github.com/zth/relay-modern-flow-jest-example
- Owner: zth
- License: mit
- Created: 2017-12-12T21:04:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-30T19:28:34.000Z (over 6 years ago)
- Last Synced: 2023-03-03T00:27:30.682Z (about 2 years ago)
- Topics: flow, flowtype, jest, react, react-testing-library, relay-modern
- Language: JavaScript
- Homepage:
- Size: 149 KB
- Stars: 37
- Watchers: 6
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Example of testing a Relay Modern app using Flow, Jest, react-testing-library and graphql-query-test-mock
This repo is a small example of how you can go about testing a Relay Modern
React application using Flow, Jest, `react-testing-library`, and `graphql-query-test-mock`. Please check out the annotated code.## Installation
```
yarn
```## Usage
```
yarn flow # To typecheck with Flow
yarn test # To run tests
```Check out `package.json` scripts for more.