Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Svelte Testing Crash Course - part 11
import { render } from '@testing-library/svelte';
import Routing from './routing.svelte';
describe('Routing', () => {
it('should render routing', () => {
const { getByTestId } = render(Routing);
const element = getByTestId('info');
expect(element).toHaveTextContent('Click to modify');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.