DEV Community

Discussion on: Introduction to unit testing in JS

Collapse
 
gugadev profile image
Gustavo Garsaky

Good reading. I use Jest all time, except for Angular. Currently I'm building a UI library for a design system using Web Components (lit-element) but I don't have experience testing this kind of components. Any suggestion? Thanks.

Collapse
 
areknawo profile image
Arek Nawo

For this special use case, I think Mocha will be the best choice. Mainly because of its flexibility and extendability. Also, maybe this can be helpful. 😀

Collapse
 
gugadev profile image
Gustavo Garsaky

Yeah. I ended up with Karma and Mocha. Thanks!