Closed
Description
import Button from 'Button.svelte';
import {render} from 'svelte-testing-library'
const { container } = render(Button);
//..
expect(container.firstChild).toMatchSnapshot();
This will allow to create snapshot tests in a easier way. It could be a nice addition as other testing-library
libraries export it. I know it's possible to use document.body
but it's not intuitive and not easy for new comers