Skip to content

Commit 09f9b9f

Browse files
Ingibjörg Ósk Jónsdóttir (Inga)thymikee
authored andcommitted
docs: Remove misleading recommendation to use shallow in snapshot tests (#128)
### Summary I removed misleading recommendation to render components with `shallow` in snapshot tests as a result of the conversation in Issue #127. ### Test plan Review text in API.md
1 parent b3abf50 commit 09f9b9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/API.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ Get the rendered component JSON representation, e.g. for snapshot testing.
139139

140140
- [`Example code`](https://github.com/callstack/react-native-testing-library/blob/master/src/__tests__/shallow.test.js)
141141

142-
Shallowly renders given React component. Since it doesn't return helpers to query the output, it's mostly advised to used for snapshot testing (short snapshots are best for code reviewers).
142+
Shallowly renders given React component.
143143

144144
```jsx
145145
import { shallow } from 'react-native-testing-library';

0 commit comments

Comments
 (0)