Add some additional examples
This commit is contained in:
10
examples/directory/src/user.test.jsx
Normal file
10
examples/directory/src/user.test.jsx
Normal 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();
|
||||
});
|
||||
Reference in New Issue
Block a user