Cypress Unit Testing In React Application

  Рет қаралды 20,287

For Those Who Code

For Those Who Code

Күн бұрын

We will write unit testing for our React application using Cypress. With a unit test, we are ensuring all our functionality works in our application. This is great for bug-free production code.
***NOTE: This is not purely a unit test, we have a component test in the mix.
So, let's make it together. 💣
🙏 Click to Support me 👇🏼 👇🏼
/ @forthosewhocode
-
👀 End to end testing with Cypress: • Cypress End to End(E2E...
--
🌲 Cypres documentation: docs.cypress.io/
🌲 Kitchensink app: github.com/cyp...
🌲 Git Repo: github.com/ish...
--
🙏 Please like, share, and follow for more awesomeness coming 🙏
⌨️ Happy Coding!

Пікірлер: 13
@LeFede
@LeFede Жыл бұрын
how should I exclude cypress folder from vite build ?
@HollyJolly83
@HollyJolly83 Жыл бұрын
Please publish more videos for testing different component in react as well as angular if possible
@show_me_the_moneyy
@show_me_the_moneyy Жыл бұрын
Nice video mate - I have used react testing library and really loved it - I have not used Cypress before but from the example you covered - the difference which I see between these 2 libraries is - RTL is so intuitive - I mean I checked RTL documentation not so frequently, I didn't feel the need to check syntax - it came naturally - but looking at the example you covered it seems like I will have to check documentation frequently to use Cypress atleast till I become little comfortable with it
@rangasaisandilya8486
@rangasaisandilya8486 Жыл бұрын
Very helpful for me thanks
@fullstackspiderman
@fullstackspiderman Жыл бұрын
im using cypress for e2e testing, the test is not creating records but im able to if I access my app directly. not sure whats blocking. using react-query, axios, formik, mui, etc
@consciousmi4842
@consciousmi4842 2 жыл бұрын
Thanks, helpful
@pritamkumarsah1017
@pritamkumarsah1017 8 ай бұрын
how can we generate code coverage report of the same component testing ?
@wisdomelue
@wisdomelue Жыл бұрын
also can i use cypress with node js and can you do videos that’s mocks an api call with cypress and react
@forthosewhocode
@forthosewhocode Жыл бұрын
Yes, definitely you can 🤗
@Sebastian-rh5gt
@Sebastian-rh5gt Жыл бұрын
Nice video, I have a question. In my app some views require authentication, how can I maintain my session or token active during the test if I need to log in first, and after that when I go to my form view the token generated and stored in local storage is missing?
@weihungchin1240
@weihungchin1240 Жыл бұрын
Is there a way to generate code coverage report when running in headless mode ?
@alifiyahh6387
@alifiyahh6387 Жыл бұрын
why doesn't the code open the same website that you have?
@wisdomelue
@wisdomelue Жыл бұрын
really loved this video, more videos on cypress with react and typescript thanks
Testing In React Tutorial - Jest and React Testing Library
21:28
Will A Guitar Boat Hold My Weight?
00:20
MrBeast
Рет қаралды 238 МЛН
My daughter is creative when it comes to eating food #funny #comedy #cute #baby#smart girl
00:17
Inside Out 2: BABY JOY VS SHIN SONIC 3
00:19
AnythingAlexia
Рет қаралды 8 МЛН
Man Mocks Wife's Exercise Routine, Faces Embarrassment at Work #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 4,7 МЛН
Cypress End to End(E2E)  Testing
41:01
For Those Who Code
Рет қаралды 5 М.
Stop Writing So Many Tests
10:02
Web Dev Simplified
Рет қаралды 90 М.
Vitest or Cypress? Why not both?! Tools and Practices for Good Tests
47:00
Cypress Testing with React - Simple Tutorial
12:43
Cosden Solutions
Рет қаралды 48 М.
Test-Driven Development // Fun TDD Introduction with JavaScript
12:55
Cypress (Web Testing Framework) Crash Course - 2021
2:03:05
Laith Academy
Рет қаралды 106 М.
React Testing Crash Course
58:36
Traversy Media
Рет қаралды 317 М.
React Testing for Beginners: Start Here!
1:17:14
Programming with Mosh
Рет қаралды 102 М.
Will A Guitar Boat Hold My Weight?
00:20
MrBeast
Рет қаралды 238 МЛН