DEV Community

John Snow
John Snow

Posted on

2 3

How to test a component independently

I am working with ReactJS and I have many components in my project. I wish I could run stand alone once component on my browser for testing. Is it right on that?

Top comments (1)

Collapse
 
dorshinar profile image
Dor Shinar • Edited

There are a number of options, depending on your specific need, but either a combination of jest + enzyme (for unit testing), storybook or react-cosmos will probably be what you're looking for.

AWS Q Developer image

Your AI Code Assistant

Generate and update README files, create data-flow diagrams, and keep your project fully documented. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE