5 ms·
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 wo
by dfrsol 6y 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.
- erokar 6y agoOur test coverage of the Svelte apps is meagre so far to be honest.
- rsyring 6y agoTheir 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 https://svelte.dev/faq#how-do-i-test-svelte-apps
- Existenceblinks 6y agoThe solution to this, I believe, is making template a function: https://news.ycombinator.com/item?id=25023551 https://news.ycombinator.com/item?id=25023551