SOLUTION: Testing UserAccount - Failed Test

Course: Testing React Apps with React Testing Library
Section: Testing React Components (100m)
Video: 5- Exercise- Testing UserAccount

File: UserAccount.test.tsx

Auto cleanup should be handled automatically. However, if you’re getting a failed test that looks right, you may need to manually cleanup, as I did, with the following code:

describe('UserAccount', () => {

afterEach(() => {
  cleanup();
});