Svelte · Middle · Question 74 of 75
How do you test a component that expects snippet props?
- ✓Correct answer: Create snippets with
createRawSnippetor render a small wrapper test component that passes them - 2Snippet props can't be tested
- 3Pass a plain string instead
Explanation
A wrapper component in the test folder keeps the test close to how real users of the component pass content.