parent
884d604848
commit
66fa7c8f7a
@ -1,15 +0,0 @@ |
|||||||
import React from 'react'; |
|
||||||
import { Provider } from 'react-redux'; |
|
||||||
import { render, screen } from '@testing-library/react'; |
|
||||||
import App from './App'; |
|
||||||
import { store } from './redux/store'; |
|
||||||
|
|
||||||
test('renders learn react link', () => { |
|
||||||
render( |
|
||||||
<Provider store={store}> |
|
||||||
<App /> |
|
||||||
</Provider>, |
|
||||||
); |
|
||||||
const linkElement = screen.getByText(/learn react/i); |
|
||||||
expect(linkElement).toBeInTheDocument(); |
|
||||||
}); |
|
Before Width: | Height: | Size: 2.6 KiB |
@ -1 +0,0 @@ |
|||||||
import 'react-scripts'; |
|
@ -1,5 +0,0 @@ |
|||||||
// jest-dom adds custom jest matchers for asserting on DOM nodes.
|
|
||||||
// allows you to do things like:
|
|
||||||
// expect(element).toHaveTextContent(/react/i)
|
|
||||||
// learn more: https://github.com/testing-library/jest-dom
|
|
||||||
import '@testing-library/jest-dom'; |
|
Loading…
Reference in new issue