2 ms·
Can you link to/post an example of how Svelte is tested that's different? In the Full Example linked, the only code that it makes sense to talk about being in
by wk_end 2y ago
Can you link to/post an example of how Svelte is tested that's different?
In the Full Example linked, the only code that it makes sense to talk about being in the app itself is the code to render the component, and that does look precisely the same.
The rest is the testing logic - inspecting the state of the DOM post-render, interacting with components by simulating events, and so on. I don't see how this could correspond to anything in the app proper.