You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since a Svelte component is compiled, it's a little bit harder to be flexible with what elements should wrap the component than what it is in e.g. React where you can wrap your component with some custom JSX directly inline in the test.
test('it renders properly in a table',async()=>{consttable=document.createElement('table')document.body.appendChild(table)constutils=render(MyTableBody,{target: table})// ...})
The text was updated successfully, but these errors were encountered:
EmilTholin
changed the title
Customize the container and base element
Customize the container
May 3, 2019
Uh oh!
There was an error while loading. Please reload this page.
Since a Svelte component is compiled, it's a little bit harder to be flexible with what elements should wrap the component than what it is in e.g. React where you can wrap your component with some custom JSX directly inline in the test.
With this in mind, what do you think about taking some inspiration from
react-testing-library
and allowing the user to customize thetarget
themselves?The text was updated successfully, but these errors were encountered: