Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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!


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/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: