diff --git a/web/src/components/__tests__/Link.test.jsx b/web/src/components/__tests__/Link.test.jsx new file mode 100644 index 000000000..5a4884694 --- /dev/null +++ b/web/src/components/__tests__/Link.test.jsx @@ -0,0 +1,17 @@ +import { h } from 'preact'; +import Link from '../Link'; +import { render, screen } from '@testing-library/preact'; + +describe('Link', () => { + test('renders a link', async () => { + render(Hello); + expect(screen.queryByText('Hello')).toMatchInlineSnapshot(` + + Hello + + `); + }); +});