File tree Expand file tree Collapse file tree 6 files changed +93
-0
lines changed Expand file tree Collapse file tree 6 files changed +93
-0
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 1
1
[libs]
2
2
flow-typed
3
+
4
+ [options]
5
+ include_warnings=true
Original file line number Diff line number Diff line change
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. -->
Original file line number Diff line number Diff line change 1
1
node_modules
2
2
* .log
3
+ .eslintcache
Original file line number Diff line number Diff line change 2
2
3
3
Simple React Native testing utilities helping you write better tests with less effort
4
4
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
+
5
11
_ 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._
6
12
7
13
## The problem
@@ -170,3 +176,15 @@ test('fetch data', async () => {
170
176
expect (getByText (' fetch' ).props .title ).toBe (' loaded' );
171
177
});
172
178
```
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
Original file line number Diff line number Diff line change 28
28
},
29
29
"dependencies" : {
30
30
"react-is" : " ^16.5.2"
31
+ },
32
+ "scripts" : {
33
+ "test" : " jest" ,
34
+ "flow-check" : " flow check" ,
35
+ "lint" : " eslint src --cache"
31
36
}
32
37
}
You can’t perform that action at this time.
0 commit comments