DEV Community

Heiker
Heiker

Posted on

Webpack and puppeteer

What is the right way of using this two together?

I've been searching for a little while and so far the options that I've come across are

And this, but it doesn't use webpack.

Based on the poi plugin I made one for webpack (it's here), so far it works perfectly for my use case, but I still wonder if there is another way.

Top comments (1)

Collapse
 
vonheikemen profile image
Heiker • Edited

I'm making tests using dom-testing-library so I just need to have a browser-like environment. The tests resemble this one.