Testing a Screen with React Native Testing Library [Live Coding]

  Рет қаралды 44,217

React Native School

React Native School

Күн бұрын

In this video I walk through my process for writing tests, using React Native Testing Library, on a React Native screen. We write tests for the client side validation and form submission.
Code and more resources: www.reactnativ...

Пікірлер: 30
@BharatSingh-zk8lx
@BharatSingh-zk8lx 2 жыл бұрын
haha loved this raw video, especially the google search for the issues.
@suyesh
@suyesh 4 жыл бұрын
Finally a good video on react native testing. Thank you.
@ReactNativeSchool
@ReactNativeSchool 4 жыл бұрын
Glad you liked it! Let me know what other testing questions you have or what you'd like to see related to testing. It's a topic I want to dive deeper into.
@kabugh
@kabugh 4 жыл бұрын
I've recently learned how to do it in React, so React Native video comes perfectly on time. Thanks!
@fotios4902
@fotios4902 3 жыл бұрын
I really liked the flow! Great tutorial!
@anandhusajeev2146
@anandhusajeev2146 4 жыл бұрын
Nice video, for the last two days I too looking at the react-native testing library example for my project. looking for more on this topic, especially mocking API calls using Axios, handling redux form, and 'rematch' structured projects component handling using react native testing library
@gastonquelali1226
@gastonquelali1226 2 жыл бұрын
Excellent video, thanks
@JulianKingman
@JulianKingman 3 жыл бұрын
How do you decide how many things to test? Is there a checklist you go through when designing tests?
@marcoscunha6151
@marcoscunha6151 3 жыл бұрын
up
@ludwigvillalba1886
@ludwigvillalba1886 2 жыл бұрын
thanks for sharing!
@borasumer
@borasumer 2 жыл бұрын
What is we use useNavigation in that component, and not getting the navigation object from props?
@johnj.rivers7318
@johnj.rivers7318 2 жыл бұрын
You have to mock useNavigation the same way
@bashamuhammad2817
@bashamuhammad2817 3 жыл бұрын
Good video 👌. Keep it up
@balders952
@balders952 3 жыл бұрын
What's the best UI (BlackBox) testing framework for react native? I use cypress for my reactjs projects using the react selectors to query the dom via components and props which is a game-changer. I cant seem to find anything similar for Native.
@aligarajian8806
@aligarajian8806 3 жыл бұрын
awesome content, thank you!
@alessandrob.g.4524
@alessandrob.g.4524 2 жыл бұрын
Hey, how do you test focus events on a Text Input in React Native?
@IvanStipic_Stiiv
@IvanStipic_Stiiv 3 жыл бұрын
It is great you didn't edit the video, thanks for that! It is real word example of TDD workflow at last!
@bobbytop6109
@bobbytop6109 2 жыл бұрын
Thankyou for the tutorial. But how can you mock the test with axios? It would be great if you could provide me some refrence or some example.
@emyboybeats4330
@emyboybeats4330 4 жыл бұрын
Do you have more videos on Testing? Testing videos aren't all that much on youtube
@ReactNativeSchool
@ReactNativeSchool 4 жыл бұрын
I've got a few over on React Native School - www.reactnativeschool.com/topic/testing. Let me know what questions you have though. This is a topic I want to dive deeper into.
@aadarshaacharya267
@aadarshaacharya267 3 жыл бұрын
Which theme are you using on VSCODE ? Is that Night Owl?
@ReactNativeSchool
@ReactNativeSchool 3 жыл бұрын
It sure is!
@emyboybeats4330
@emyboybeats4330 4 жыл бұрын
what extension are you using to show the check marks?
@ReactNativeSchool
@ReactNativeSchool 4 жыл бұрын
marketplace.visualstudio.com/items?itemName=Orta.vscode-jest
@Norfeldt
@Norfeldt 4 жыл бұрын
Just looked at your course material. It looks really good and relevant topics. If you are open for suggestions I would suggest covering payment - since it allows more investment return on taking the courses. I'm personally very interested in testing and would also love to automate a build process for both platforms like expo turtle does.
@MerciBro
@MerciBro 3 жыл бұрын
Why is "Login" passing as 2. Shouldn't it be 5?
@MerciBro
@MerciBro 3 жыл бұрын
Neverminded. I see my problem now.
@loekTheDreamer
@loekTheDreamer 2 жыл бұрын
i love tutorials that don't work in the real world. yes your page loads automatically but in the real world we have state that effect how things are loaded. now where do i actually find one dealing with a real app?
@LCRASW123
@LCRASW123 2 жыл бұрын
I'm new to react-native, is there a matcher like .toBeInTheDocument()?
React Testing Library Crash Course
1:16:52
Laith Academy
Рет қаралды 89 М.
Война Семей - ВСЕ СЕРИИ, 1 сезон (серии 1-20)
7:40:31
Семейные Сериалы
Рет қаралды 1,6 МЛН
Who is More Stupid? #tiktok #sigmagirl #funny
0:27
CRAZY GREAPA
Рет қаралды 10 МЛН
React Testing for Beginners: Start Here!
1:17:14
Programming with Mosh
Рет қаралды 148 М.
React Testing Crash Course
58:36
Traversy Media
Рет қаралды 321 М.
Testing In React Tutorial - Jest and React Testing Library
21:28
The State of React Native
42:04
Theo - t3․gg
Рет қаралды 68 М.
Getting Started with React Navigation v5 - Stack, Tabs, Drawer, Authentication
31:52
React Native TDD episode 1 - Tool Setup
44:46
CodingItWrong
Рет қаралды 18 М.
React Native EU 2019: Vojtech Novak - Real World e2e Testing With Detox
31:07
Tests in React Native with testing library
43:02
Mobile Magic
Рет қаралды 14 М.
Война Семей - ВСЕ СЕРИИ, 1 сезон (серии 1-20)
7:40:31
Семейные Сериалы
Рет қаралды 1,6 МЛН