Preact testing in 2025: All About Compat
· 5 min read
This is part 2 of my investigation into tooling for Preact in 2025.
In summary, Preact component testing is easy and works using vitest
or bun
.
However, the only way to get preact/compat
to work seamlessly is using
vitest-browser-preact,
which has other advantages too but at the cost of performance and stability.