How to create Jest test for a component?

To create Jest tests for a component, one need to create a folder called __tests__ at the top level of the component’s folder. For e.g.

myComponent

myComponent.html

myComponent.js

myComponent.js-meta.xml

myComponent.css

__tests__

myComponent.test.js

About the author

By Rohit

Recent Posts

Recent Comments

Archives

>