init test and snapshot,

This commit is contained in:
louiscklaw
2025-04-24 10:25:31 +08:00
parent 7a33549a79
commit 2f8acbbcdf
3 changed files with 65 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
import { render } from '@testing-library/react';
// CUT = Component Under Test
import CUT from '../components/_helloworld';
it('renders homepage unchanged', () => {
const { container } = render(<CUT />);
expect(container).toMatchSnapshot();
});