Skip to content

Commit dca5d9a

Browse files
hanorineKent C. Dodds
authored and
Kent C. Dodds
committed
docs: update README.md (#461)
Removing `import '@testing-library/react/cleanup-after-each'; ` due to deprecation.
1 parent e0ab0a8 commit dca5d9a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ export default HiddenMessage
171171
// __tests__/hidden-message.js
172172
// these imports are something you'd normally configure Jest to import for you
173173
// automatically. Learn more in the setup docs: https://testing-library.com/docs/react-testing-library/setup#cleanup
174-
import '@testing-library/react/cleanup-after-each'
175174
import '@testing-library/jest-dom/extend-expect'
176175
// NOTE: jest-dom adds handy assertions to Jest and is recommended, but not required
177176

@@ -264,7 +263,6 @@ export default Login
264263
// __tests__/login.js
265264
// again, these first two imports are something you'd normally handle in
266265
// your testing framework configuration rather than importing them in every file.
267-
import '@testing-library/react/cleanup-after-each'
268266
import '@testing-library/jest-dom/extend-expect'
269267
import React from 'react'
270268
import {render, fireEvent} from '@testing-library/react'

0 commit comments

Comments
 (0)