DEV Community

Front-End Unit Testing

Matti Bar-Zeev on January 18, 2020

Intro Front-End can (and should) be unit-tested. The reason that developers avoid it by saying it cannot be tested is mainly due to the ...
Collapse
 
jeromedeleon profile image
Jerome De Leon

Great. Actually this is what differentiate between unit and integration testing. If you rely on something else aside from "scope" you are suppose to test then might as well mock it. ;) I'm currently learning testing logic. This is a great advice! Indeed!

Collapse
 
osde8info profile image
Clive Da

loving the "dont test" aproach is that called DTDD :)

Collapse
 
mbarzeev profile image
Matti Bar-Zeev

Yeah, why not 😄

Collapse
 
thehanna profile image
Brian Hanna

As someone who has never written a unit test on the front end (due to lack of support/resources) this is incredibly helpful.

Collapse
 
mbarzeev profile image
Matti Bar-Zeev

Thanks! glad I could help :)

Collapse
 
skopetn profile image
Skander Guarbàa

Super helpful thank you !