mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
17 lines
308 B
TypeScript
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();
|
|
});
|
|
});
|