Commit 322c0de
authored
[MOB-10126] Improve Test Files Structure (#784)
* Change test directory name to `tests`
* Change `tests` directory structure so it mirrors `src` structure
* Move mocks to `tests/mocks` instead of `tests/jest`
* Move setup code into `setup-tests.js`
* Use recommended native modules mocking technique
* Move `InstabugUtils` tests to root tests directory
* Remove example app unit tests
* Change `Platform.constants ??=` to an if check
* Rename all `NativeIBG*` to `Native*` in tests
* Rename `__e2e__` to `e2e` and follow file naming convention
* Rename `setup-tests.js` to `setup.js`1 parent 243cdd5 commit 322c0de
File tree
47 files changed
+988
-1259
lines changed- .circleci
- example
- __tests__
- e2e
- utils
- tests
- mocks
- models
- modules
- utils
- test
- jest
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
47 files changed
+988
-1259
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | 47 | | |
78 | 48 | | |
79 | 49 | | |
| |||
229 | 199 | | |
230 | 200 | | |
231 | 201 | | |
232 | | - | |
233 | 202 | | |
234 | 203 | | |
235 | 204 | | |
| |||
239 | 208 | | |
240 | 209 | | |
241 | 210 | | |
242 | | - | |
243 | 211 | | |
244 | 212 | | |
245 | 213 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
This file was deleted.
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
File renamed without changes.
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
0 commit comments