Files
introduction-to-testing/examples/directory/src/user.test.jsx
2024-10-02 08:41:56 -05:00

11 lines
281 B
JavaScript

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();
});