From f4dda4ba89c5e66fd7d055c48bf4658e06f37bb6 Mon Sep 17 00:00:00 2001 From: Inga Jonsdottir Date: Thu, 7 Mar 2019 10:36:50 -0800 Subject: [PATCH] docs: Remove misleading recommendation to use shallow in snapshot tests --- docs/API.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/API.md b/docs/API.md index d59702ad3..6e4f87094 100644 --- a/docs/API.md +++ b/docs/API.md @@ -139,7 +139,7 @@ Get the rendered component JSON representation, e.g. for snapshot testing. - [`Example code`](https://github.com/callstack/react-native-testing-library/blob/master/src/__tests__/shallow.test.js) -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). +Shallowly renders given React component. ```jsx import { shallow } from 'react-native-testing-library';