diff options
Diffstat (limited to 'src/Root.test.js')
-rw-r--r-- | src/Root.test.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Root.test.js b/src/Root.test.js new file mode 100644 index 0000000..7f785a2 --- /dev/null +++ b/src/Root.test.js @@ -0,0 +1,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!'); + }); +}); |