Add some additional examples

This commit is contained in:
Steve Kinney
2024-10-02 08:41:56 -05:00
parent a212170602
commit 4b025e2a07
21 changed files with 355 additions and 6 deletions

View File

@@ -0,0 +1,10 @@
import { screen, render } from '@testing-library/react';
import { User } from './user';
it.skip('should render a user', async () => {
// This calls an API. That's not great. We should mock it.
const id = 1;
render(<User id={id} />);
expect(user).toBeInTheDocument();
});