mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
feat: move pretty-format from peer do deps (#39)
<!-- Please provide enough information so that others can review your pull request. --> <!-- Keep pull requests small and focused on a single change. --> ### Summary We could also make it an optional dependency and inline-require it inside debug (the only place we use it) but for now I decided to make it a regular dependency, because that's what it is, no point in making users install it directly. ### Test plan green CI
This commit is contained in:
committed by
GitHub
parent
22ffe8405b
commit
45f45bf1b4
@@ -57,7 +57,7 @@ Open a Terminal in your project's folder and run:
|
||||
yarn add --dev react-native-testing-library
|
||||
```
|
||||
|
||||
This library has a peerDependencies listing for `react-test-renderer`, `pretty-format` and, of course, `react`. Make sure to install them too!
|
||||
This library has a peerDependencies listing for `react-test-renderer` and, of course, `react`. Make sure to install them too!
|
||||
|
||||
As you may have noticed, it's not tied to React Native at all – you can safely use it in your React components if you feel like not interacting directly with DOM.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user