blob: 7f785a2387ea776e1209b029caeddbc929345376 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import React from 'react';
import { render } from 'react-testing-library';
import 'jest-dom/extend-expect';
import Root from './Root';
describe('Root', () => {
test('greeting is shown', () => {
const { container } = render(<Root />);
expect(container).toHaveTextContent('Hello, world!');
});
});
|