Skip to content

Commit 16d0a2b

Browse files
committed
Merge remote-tracking branch 'origin' into feat/fire-event-api
2 parents df677f4 + 08c5725 commit 16d0a2b

File tree

6 files changed

+93
-0
lines changed

6 files changed

+93
-0
lines changed

.circleci/config.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
version: 2
2+
3+
defaults: &defaults
4+
docker:
5+
- image: circleci/node:10
6+
working_directory: ~/react-native-testing-library
7+
8+
jobs:
9+
install-dependencies:
10+
<<: *defaults
11+
steps:
12+
- checkout
13+
- attach_workspace:
14+
at: ~/react-native-testing-library
15+
- restore_cache:
16+
keys:
17+
- dependencies-{{ checksum "package.json" }}
18+
- dependencies-
19+
- run: yarn install --frozen-lockfile
20+
- save_cache:
21+
key: dependencies-{{ checksum "package.json" }}
22+
paths:
23+
- node_modules
24+
- persist_to_workspace:
25+
root: .
26+
paths:
27+
- .
28+
lint-and-flow:
29+
<<: *defaults
30+
steps:
31+
- attach_workspace:
32+
at: ~/react-native-testing-library
33+
- run: |
34+
yarn lint
35+
yarn flow-check
36+
tests:
37+
<<: *defaults
38+
steps:
39+
- attach_workspace:
40+
at: ~/react-native-testing-library
41+
- run: yarn test
42+
- store_artifacts:
43+
path: coverage
44+
destination: coverage
45+
46+
workflows:
47+
version: 2
48+
build-and-test:
49+
jobs:
50+
- install-dependencies
51+
- lint-and-flow:
52+
requires:
53+
- install-dependencies
54+
- tests:
55+
requires:
56+
- install-dependencies

.flowconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
[libs]
22
flow-typed
3+
4+
[options]
5+
include_warnings=true

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!-- Please provide enough information so that others can review your pull request. -->
2+
<!-- Keep pull requests small and focused on a single change. -->
3+
4+
### Summary
5+
6+
<!-- What existing problem does the pull request solve? Can you solve the issue with a different approach? -->
7+
8+
### Test plan
9+
10+
<!-- List the steps with which we can test this change. Provide screenshots if this changes anything visual. -->

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
22
*.log
3+
.eslintcache

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
Simple React Native testing utilities helping you write better tests with less effort
44

5+
[![Build Status][build-badge]][build]
6+
[![Version][version-badge]][package]
7+
[![MIT License][license-badge]][license]
8+
[![PRs Welcome][prs-welcome-badge]][prs-welcome]
9+
[![Chat][chat-badge]][chat]
10+
511
_Appreciation notice: This project is heavily inspired by [react-testing-library](https://github.com/kentcdodds/react-testing-library). Go check it out and use it to test your web React apps._
612

713
## The problem
@@ -170,3 +176,15 @@ test('fetch data', async () => {
170176
expect(getByText('fetch').props.title).toBe('loaded');
171177
});
172178
```
179+
180+
<!-- badges -->
181+
[build-badge]: https://img.shields.io/circleci/project/github/callstack/react-native-testing-library/master.svg?style=flat-square
182+
[build]: https://circleci.com/gh/callstack/react-native-testing-library
183+
[version-badge]: https://img.shields.io/npm/v/react-native-testing-library.svg?style=flat-square
184+
[package]: https://www.npmjs.com/package/react-native-testing-library
185+
[license-badge]: https://img.shields.io/npm/l/react-native-testing-library.svg?style=flat-square
186+
[license]: https://opensource.org/licenses/MIT
187+
[prs-welcome-badge]: https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square
188+
[prs-welcome]: http://makeapullrequest.com
189+
[chat-badge]: https://img.shields.io/discord/426714625279524876.svg?style=flat-square&colorB=758ED3
190+
[chat]: https://discord.gg/QbGezWe

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,10 @@
2828
},
2929
"dependencies": {
3030
"react-is": "^16.5.2"
31+
},
32+
"scripts": {
33+
"test": "jest",
34+
"flow-check": "flow check",
35+
"lint": "eslint src --cache"
3136
}
3237
}

0 commit comments

Comments
 (0)