From 09f9b9f05af8376f8aec69b1b7305d7c50b2367a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingibj=C3=B6rg=20=C3=93sk=20J=C3=B3nsd=C3=B3ttir=20=28Inga?= =?UTF-8?q?=29?= Date: Thu, 7 Mar 2019 11:55:03 -0800 Subject: [PATCH] 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 --- docs/API.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/API.md b/docs/API.md index d59702ad..6e4f8709 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';