Hacker News new | ask | show | jobs
by dfrsol 2061 days ago
How are y'all testing your svelte apps/components? Jest+Testing Lib seems to have issues calculating code coverage and there are few quirks like having to do work arounds to test slots that prevent me from totally switching over.
2 comments

Our test coverage of the Svelte apps is meagre so far to be honest.
Their response to "How do I test Svelte apps?"

"We don't have a good answer for that yet, but it is a priority."

I was interested in Svelte until I read this. When they have a good answer, I'll be interested again.

https://svelte.dev/faq#how-do-i-test-svelte-apps

The solution to this, I believe, is making template a function: https://news.ycombinator.com/item?id=25023551