Hacker News new | ask | show | jobs
by riledhel 1064 days ago
Awesome work, thanks for maintaining it! What's the recommended strategy to do unit testing? I tried a couple of months ago to use jest but it gets messy really quick due to poor support for shadow DOM. Thank you!
1 comments

Check out Web Test Runner [0]. It uses Puppeteer to test in real browsers and is easy to setup. I test in Chromium, Firefox, and WebKit concurrently.

[0] https://modern-web.dev/docs/test-runner/overview/