DEV Community

Discussion on: Unit testing web components with ava and jsdom

Collapse
 
ducksoupdev profile image
Matt Levy

This approach utilises native ES modules which means you can share the browser code with NodeJS without transpilation. I believe it makes it better as it reduces the complexity. Currently Jest does not support native ES modules although this will probably change in the future.