UNIT testing your create React app Components VISUALLY

preview_player
Показать описание
That’s right - visual unit testing. Cypress is great for integration testing. But why not take it a step further and use it for unit testing giving you a streamlined developer workflow 🌹

STEPS in this lesson:

👇 SUBSCRIBE for MORE 👇

**Feel Free To Read This Lot**

I'm Basarat, That TypeScript Guy and I love helping developers. More about me:

Microsoft MVP for TypeScript
Lead Frontend Practice at Australia Post
150K contributions on Stackoverflow. Top Contributor for TypeScript.
Book Author : Beginning NodeJS
Book Author : TypeScript Deep Dive
Creator of multiple hot ✨ed Github Open Source projects

Рекомендации по теме
Комментарии
Автор

holy shit, man, i hated doing front-end testing because of Jest's stupid way of testing. I want to implement this in a basic app now, thanks!

heugh_jazz
Автор

what is name of this font theme. Thanks.

muralidharmoka
Автор

Hey! Great video. Super super good indeed.
How would you test a component that has a <Link /> component from react-router-dom or that redirects upon signup for example?
I have been trying to see how to do it. Any help would be appreciated!

andredealbuquerque
Автор

I love working with cypress, as it is easy to use and a great tool. However, I got an error when trying to run the tests.

Error: Webpack Compilation Error

Module build failed (from
Error: Node Sass does not yet support your current environment: OS X 64-bit with Unsupported runtime (82)
For more information on which environments are supported please see:
@ 2:14-285 21:1-42:3 22:19-290
@
@ ./src/components/App.tsx
@

Do you have any idea what this error may apply?

eskildbrobak
Автор

I am excited 🕺... Hey @basrat please let me know.. if I can use this in production application? NOW.

arupdash
Автор

That's really cool! I didn't know Cypress could do that. Would you use this completely in place of traditional unit test or a combination of the two?

NCmderShepard