No video

React Testing Library Tutorial #7 - Using Query Methods

  Рет қаралды 73,767

Net Ninja

Net Ninja

Күн бұрын

Check out Laith's KZfaq channel for more tutorials:
/ @laithacademy
🐱‍💻 Access the course files on GitHub:
github.com/har...
🐱‍👤 Get access to extra premium courses on Net Ninja Pro:
netninja.dev
🐱‍💻 Full React Course:
• Full React Tutorial #1...
🐱‍💻 Social Links:
Facebook - / thenetninjauk
Twitter - / thenetninjauk
Instagram - / thenetninja

Пікірлер: 40
@Gigusx
@Gigusx 3 жыл бұрын
Knowing what to test, and even more importantly what NOT to test is the most important thing in testing. It's very easy to be inefficient and write useless tests, at which point it doesn't matter if you have any tests at all.
@prasadbroo
@prasadbroo Жыл бұрын
can you please tell what to test and what not to test? i am currently learning testing
@alanwalker5845
@alanwalker5845 2 жыл бұрын
This is a really good series. The way you built up the foundation was remarkable.
@yesufhassen7422
@yesufhassen7422 2 жыл бұрын
The most underated series. Thank you very much
@HomelessDeamon
@HomelessDeamon 3 жыл бұрын
Boss Shaun thanks for Hosting !!!! sir Laith :D last few episodes are awesome !!!
@8mycereal
@8mycereal 3 жыл бұрын
Hello! I just finished your python beginner series please make the advanced one! This taught me so much. You are the best teacher out there!
@NetNinja
@NetNinja 3 жыл бұрын
Thanks so much!
@ricardocosta4663
@ricardocosta4663 3 жыл бұрын
This is such an important topic but I never see good courses about it. In my personal projects I have difficulty in async functions, hope this series will answer my questions. Keep it up.
@chetanjain4616
@chetanjain4616 2 жыл бұрын
I have a suggestion please, use full screen of code editor at time, because Laith here has his sidebar, editor and terminal all open in same screen and I understand that he has a wide monitor so its not that difficult for him to keep track of whats where but my eyes are hurting looking at the screen even in full screen in KZfaq. So If possible can you do something about that in the future videos? Great Course BTW!
@sahilkc23
@sahilkc23 3 жыл бұрын
i loved it , really well explained my friend ❤️
@jeisongarzon6066
@jeisongarzon6066 2 жыл бұрын
Thank you so much for this free course on Testing. I really appreciate the effort.
@celina6204
@celina6204 2 жыл бұрын
I love your way of explaining. Great series!
@yusufkebbe2909
@yusufkebbe2909 3 жыл бұрын
Omg the best teaching video for testing man , really appreciate it :d
@ginn1349
@ginn1349 3 жыл бұрын
love it, thank Laith and The Net Ninja
@_jamesbro_
@_jamesbro_ 5 ай бұрын
I think the test would provide more informative feedback if you prioritised finding by an attribute that is highly certain, such as testId, then asserting the expected text value instead of finding by the text value. It proves that the element is visible but may not have the expected text value instead of not finding the element at all.
@sagarreddy7461
@sagarreddy7461 2 жыл бұрын
thanks laith n shaun.
@GMelization
@GMelization 2 жыл бұрын
beautiful series bro. Thank you
@funzoned9008
@funzoned9008 3 жыл бұрын
I wonder why we use async instead of normal arrow function inside the test/it blocks?
@realcirno1750
@realcirno1750 Жыл бұрын
its because some of the query methods need to be `await`ed
@thedevguild7525
@thedevguild7525 2 жыл бұрын
Hi why is there async in the query method?
@timothyn4699
@timothyn4699 8 ай бұрын
interesting, but I don't get why use queryBy vs findBy, other than it sounds like queryBy is async. For me atm, it's not seeming to find "meetup" text within content of an a tag when I try to findby or queryby text for reasons unknown (trying to verify it can see the meetup url I have)
@meneworon9878
@meneworon9878 2 жыл бұрын
When u use any of the query methods, is the entire application checked for the element you're querying or is it just in the component
@petarp3938
@petarp3938 2 жыл бұрын
5:33 you almost turned into a brit for a split second there
@mohammedshahed3432
@mohammedshahed3432 3 жыл бұрын
Could you please bring videos on FIREBASE USING REACT AS it seems to be very difficult to understand from OTHER KZfaq VIDEOS and please please please create VIDEOS on ALL OTHER FIREBASE FUNCTIONS such as ( "" AUTH (phone email OAUTH etc..), CRUD, HOSTING using REACT. I'm Unable t learn from any other KZfaq Videos EXCEPT u. Please Please Please
@dragoran149
@dragoran149 3 жыл бұрын
Can you use gRPC for your next tutorial?
@doniaelfouly4142
@doniaelfouly4142 8 ай бұрын
thanks
@ahmedtohamy3258
@ahmedtohamy3258 2 жыл бұрын
Great Video :)
@oajamfibia
@oajamfibia Жыл бұрын
The purpose of the tests ('should render same text passed into title prop') was never tested. You just found some header element.
@amindhahri2542
@amindhahri2542 2 жыл бұрын
Whats the main difference between test and it?
@suyogsubedi8584
@suyogsubedi8584 3 жыл бұрын
Any MERN stack coming soon?
@pixelsbyme
@pixelsbyme 3 жыл бұрын
Second
@vasiliyandreychikov2090
@vasiliyandreychikov2090 2 жыл бұрын
.not chaining is really interesting (~14 min)
@vasiliyandreychikov2090
@vasiliyandreychikov2090 2 жыл бұрын
expect (headingElements. length). toBe(2) - toBe is also new from previous videos
@LuisMedina-ok5cg
@LuisMedina-ok5cg Жыл бұрын
1:30 interesting...
@markprotsyuk
@markprotsyuk Жыл бұрын
I'm pretty sure this guy likes cats
@seyolas3588
@seyolas3588 2 жыл бұрын
Man just show the easiest way or make a component which has div, section, p tag, links ... And show us how to write a test properly. You are like we can do that ... We can choose that... Bla bla bla bla options are never ending. In the end i have no idea how to choose a fucking h1 tag. This is not a good way to teaching. There is a reason we are watcing these videos instead of reading documentation.
@SimPwear84
@SimPwear84 2 жыл бұрын
Maybe you lack imagination or coding skills if that is hard for you to figure out. No offense!
@Evikeuklavier
@Evikeuklavier 2 жыл бұрын
This. Sucks. So. Much.
@GMelization
@GMelization 2 жыл бұрын
2:32 - 2:38 is THEE answer I've been looking for since yesterday. You're a god sent my G. S/O @Laith
React Testing Library Tutorial #8 - Assertions
18:01
Net Ninja
Рет қаралды 59 М.
The Story of React Query
8:55
uidotdev
Рет қаралды 101 М.
7 Days Stranded In A Cave
17:59
MrBeast
Рет қаралды 97 МЛН
The CUTEST flower girl on YouTube (2019-2024)
00:10
Hungry FAM
Рет қаралды 6 МЛН
Nurse's Mission: Bringing Joy to Young Lives #shorts
00:17
Fabiosa Stories
Рет қаралды 6 МЛН
I tried 8 different Postgres ORMs
9:46
Beyond Fireship
Рет қаралды 406 М.
Why I Don’t Unit Test
8:25
Theo - t3․gg
Рет қаралды 90 М.
jest-mock: все лгут?
13:33
JavaScript.Ninja
Рет қаралды 15 М.
React Testing Library Tutorial #10 - Fire Events
13:25
Net Ninja
Рет қаралды 59 М.
React Testing Library Tutorial #5 - Intro to Query Methods
8:30
React Testing Crash Course
58:36
Traversy Media
Рет қаралды 316 М.
Don't Use React Context!! Use This instead
13:34
CoderOne
Рет қаралды 27 М.
The ONLY REASON To Unit Test
8:26
Theo - t3․gg
Рет қаралды 77 М.
WTF Do These Even Mean
13:44
Web Dev Simplified
Рет қаралды 84 М.
7 Days Stranded In A Cave
17:59
MrBeast
Рет қаралды 97 МЛН