Files
DefectingCat.github.io/__tests__/pages/index.test.tsx
DefectingCat 2cbcf99876 Add testing
2022-01-14 10:38:17 +08:00

17 lines
308 B
TypeScript

/**
* @jest-environment jsdom
*/
import { render, screen } from '@testing-library/react';
import Home from 'pages/index';
describe('Home', () => {
it('renders a heading', () => {
render(<Home />);
const heading = screen.getByText(/hello/i);
expect(heading).toBeInTheDocument();
});
});