Closed hyochan closed 3 years ago
Merging #161 (51da5b4) into release/0.63.0 (9c9ec79) will decrease coverage by
8.27%
. The diff coverage is82.19%
.
@@ Coverage Diff @@
## release/0.63.0 #161 +/- ##
==================================================
- Coverage 97.00% 88.72% -8.28%
==================================================
Files 12 15 +3
Lines 100 133 +33
Branches 12 22 +10
==================================================
+ Hits 97 118 +21
- Misses 1 7 +6
- Partials 2 8 +6
useHeaderHeight
can be mocked like this:
jest.mock('@react-navigation/stack', () => ({
...jest.requireActual('@react-navigation/stack'),
useHeaderHeight: () => 12,
}));
jest.mock('@react-navigation/stack', () => ({ ...jest.requireActual('@react-navigation/stack'), useHeaderHeight: () => 12, }));
Ah! This is really great. I've just fixed this. I thought the context could be mocked only when inside the provider like stackoverflow.
Closes in favor of #162. #160 has been merged to master
.
This
PR
is pushed torelease/0.63.0
with web support.