For the past few weeks I've been experimenting with setting up component testing on a #lit #webcomponents project. There is very little documentation on how to do it:
My solution was:
- #vitest for running tests and assertions
- #JSDom and open-wc/testing-helpers for component rendering
- shadow-dom-testing-library for DOM querying
I might write a blog post about it