Testing
Testing Library cleanup
Unmounts rendered React trees and releases their test containers.
Formal Syntax & Structure
react syntaxreact
afterEach(cleanup)Working Example
Example Snippetreact
afterEach(cleanup)Unmounts rendered React trees and releases their test containers.
afterEach(cleanup)afterEach(cleanup)