docs: fix readme (#1620)

* docs: fix readme

* docs: tweak home page
This commit is contained in:
Maciej Jastrzebski
2024-05-24 18:22:30 +01:00
committed by GitHub
parent e8b800b62d
commit 64e1e32737
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -4,7 +4,7 @@
height="80"
width="80"
alt="owl"
src="https://raw.githubusercontent.com/callstack/react-native-testing-library/main/website/static/img/owl.png"
src="https://raw.githubusercontent.com/callstack/react-native-testing-library/main/website/docs/public/img/owl.png"
/>
<p>Developer-friendly and complete React Native testing utilities that encourage good testing practices.</P>
</div>
@@ -92,7 +92,7 @@ React Native Testing Library consists of following APIs:
- [`render` function](https://callstack.github.io/react-native-testing-library/docs/api/render) - render your UI components for testing purposes
- [`screen` object](https://callstack.github.io/react-native-testing-library/docs/api/screen) - access rendered UI:
- [Queries](https://callstack.github.io/react-native-testing-library/docs/api/queries) - find rendered components by various predicates: role, text, test ids, etc
- Lifecycle methods: [`rerender`](https://callstack.github.io/react-native-testing-library/docs/api/screen#rerender), [`unmount`](https://callstack.github.io/react-native-testing-library/docs/screen#unmount)
- Lifecycle methods: [`rerender`](https://callstack.github.io/react-native-testing-library/docs/api/screen#rerender), [`unmount`](https://callstack.github.io/react-native-testing-library/docs/api/screen#unmount)
- Helpers: [`debug`](https://callstack.github.io/react-native-testing-library/docs/api/screen#debug), [`toJSON`](https://callstack.github.io/react-native-testing-library/docs/api/screen#tojson), [`root`](https://callstack.github.io/react-native-testing-library/docs/api/screen#root)
- [Jest matchers](https://callstack.github.io/react-native-testing-library/docs/api/jest-matchers) - validate assumptions about your UI
- [User Event](https://callstack.github.io/react-native-testing-library/docs/api/events/user-event) - simulate common user interactions like [`press`](https://callstack.github.io/react-native-testing-library/docs/api/events/user-event#press) or [`type`](https://callstack.github.io/react-native-testing-library/docs/user-event#type) in a realistic way
+2 -1
View File
@@ -2,7 +2,8 @@
pageType: home
hero:
name: 'React Native Testing Library'
name: 'React Native'
text: 'Testing Library'
image:
src: /img/owl.png
tagline: Helps you to write better tests with less effort.