DEV Community

Cover image for Up & Running with JEST

Up & Running with JEST

Paul Ryan on April 28, 2019

Goal of this Article The goal of this article is to give you the fundamentals of testing a React component with Jest, with this knowledg...
Collapse
 
thorstenhirsch profile image
Thorsten Hirsch • Edited

The default tests directory of Jest is called __tests__ with double underscore on each side? Really?! This pythonesque naming convention scares me. It looks alien in the JS world.

Collapse
 
paulryan7 profile image
Paul Ryan

Yeah I see your point, and you can change it but I personally I like it - it definitely stands out to other folders

Collapse
 
paulryan7 profile image
Paul Ryan

Also updated the repo with all the tests included so you can see the final product!

Collapse
 
paulryan7 profile image
Paul Ryan

Sorry guys, accidentally deleted all the CSS on this one when I was messing around with something, back in now!