Svelte · Senior · Question 55 of 75
Why test runes logic in files named *.svelte.test.js?
- ✓Correct answer: The
.sveltepart makes the compiler process runes in the test file itself - 2It's required by Vitest
- 3To run tests in the browser
Explanation
Combine with $effect.root and flushSync to test effects synchronously.