Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: