Re:Comparing Svelte and React
by Vinnl on Thursday March 25, 2021 @03:45AM
(#26577407)
Thanks, that looks pretty good, and testing-library is excellent. I couldn't find it in the docs, but do you know how this "renders" the Svelte components - in memory using e.g. jsdom, or by firing up a full-fledged browser? (The former would be highly preferable.)
[ Parent
| on HN ]
Testing-library uses jsdom across the board, as far as I know. It might support running in a full browser too but I haven’t used it that way.
For end-to-end tests with a real browser, Cypress is a good option.