feat: run cleanup() when test runner supports teardown() (#676)
feat: run cleanup() when test runner supports teardown() (#676)

* Run cleanup() when test runner supports teardown()

* Disable ESLint for teardown() function

Co-authored-by: Sebastian Silbermann <84fc128bc6cda84e77606b9e3bddd28c2b9ce031@gmail.com>

* Ignore teardown() in code coverage because Jest does not support it

Co-authored-by: Sebastian Silbermann <84fc128bc6cda84e77606b9e3bddd28c2b9ce031@gmail.com>

testing-library/react-testing-library,testing-library/react-testing-library,testing-library/react-testing-library