No video

Why you should Jest use Cypress for React component testing - Tyler Graf - UtahJS 2023

  Рет қаралды 217

UtahJS

UtahJS

Күн бұрын

Jest has been the go-to for React component testing. It has some great pros like package mocking. But it also has several downsides including:
- fake browser rendering (jsdom)
- difficult debugging (node)
- act errors (ugh)
- no visuals (only dom output)
You may know Cypress for its e2e testing, but have you heard of Cypress Component testing?
It’s pretty amazing. Everything runs in a real browser. Which means debugging is a snap. You see everything render which makes test writing a breeze. And say goodbye to act errors, mock issues and random unknown data calls. Oh, and did I mention parallelization built in?
In this talk, I’ll cover the pros and cons of both jest and cypress including some live demos of writing, mocking, and debugging tests in both frameworks.

Пікірлер
а ты любишь париться?
00:41
KATYA KLON LIFE
Рет қаралды 2,9 МЛН
123 GO! Houseによる偽の舌ドッキリ 😂👅
00:20
123 GO! HOUSE Japanese
Рет қаралды 5 МЛН
And Now You Understand React Server Components | Kent C. Dodds
21:46
How to Debug Jest Tests in VS Code for React
10:37
Coding With Adam
Рет қаралды 16 М.
The ONLY REASON To Unit Test
8:26
Theo - t3․gg
Рет қаралды 76 М.
Cypress and Playwright: A Comparison
1:09:14
Rainer Hahnekamp
Рет қаралды 7 М.
Cypress Testing with React - Simple Tutorial
12:43
Cosden Solutions
Рет қаралды 44 М.
Why Vitest Is Better Than Jest
13:13
Web Dev Simplified
Рет қаралды 133 М.
Lets go live  - Dano Gillette - UtahJS 2023
23:30
UtahJS
Рет қаралды 102
Angular Testing in 2023: Past, Present, and Future
26:21
Rainer Hahnekamp
Рет қаралды 11 М.