Cypress Unit Testing In React Application

  Рет қаралды 19,042

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/cypress-io/cypress...
🌲 Git Repo: github.com/ishan-is-me/unit-t...
--
🙏 Please like, share, and follow for more awesomeness coming 🙏
⌨️ Happy Coding!

Пікірлер: 13
@wisdomelue
@wisdomelue Жыл бұрын
really loved this video, more videos on cypress with react and typescript thanks
@show_me_the_moneyy
@show_me_the_moneyy 10 ай бұрын
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
@consciousmi4842
@consciousmi4842 Жыл бұрын
Thanks, helpful
@JAZMedia_
@JAZMedia_ Жыл бұрын
Please publish more videos for testing different component in react as well as angular if possible
@weihungchin1240
@weihungchin1240 8 ай бұрын
Is there a way to generate code coverage report when running in headless mode ?
@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
@LeFede
@LeFede 10 ай бұрын
how should I exclude cypress folder from vite build ?
@pritamkumarsah1017
@pritamkumarsah1017 4 ай бұрын
how can we generate code coverage report of the same component testing ?
@alifiyahh6387
@alifiyahh6387 Жыл бұрын
why doesn't the code open the same website that you have?
@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?
Cypress Testing with React - Simple Tutorial
12:43
Cosden Solutions
Рет қаралды 36 М.
Cypress End to End(E2E)  Testing
41:01
For Those Who Code
Рет қаралды 4,4 М.
New Gadgets! Bycycle 4.0 🚲 #shorts
00:14
BongBee Family
Рет қаралды 18 МЛН
ГДЕ ЖЕ ЭЛИ???🐾🐾🐾
00:35
Chapitosiki
Рет қаралды 15 МЛН
Would you like a delicious big mooncake? #shorts#Mooncake #China #Chinesefood
00:30
Testing In React Tutorial - Jest and React Testing Library
21:28
Stop Writing So Many Tests
10:02
Web Dev Simplified
Рет қаралды 81 М.
Next.js with React Testing Library, Jest, TypeScript
25:04
Dave Gray
Рет қаралды 52 М.
Cypress для End2end тестирования. Первый взгляд
26:12
Михаил Непомнящий
Рет қаралды 30 М.
Vue.js Testing Guide:  Unit Tests and E2E Testing (Cypress)
15:40
Program With Erik
Рет қаралды 33 М.
Test-Driven Development // Fun TDD Introduction with JavaScript
12:55
React Unit Testing Tutorial With React Testing Library and Vitest React
19:12
Monsterlessons Academy
Рет қаралды 9 М.
5 Types of Testing Software Every Developer Needs to Know!
6:24
Cypress: Setting up Cypress in a React + Typescript project
23:01
Lauro Müller
Рет қаралды 7 М.
New Gadgets! Bycycle 4.0 🚲 #shorts
00:14
BongBee Family
Рет қаралды 18 МЛН