From bcc8e5705126e649525826d534dda668f08c1fd9 Mon Sep 17 00:00:00 2001 From: nicholas-codecov Date: Fri, 20 Sep 2024 08:04:43 -0300 Subject: [PATCH] remove manual cleanup --- src/ui/VirtualFileRenderer/ColorBar.test.tsx | 6 +----- src/ui/VirtualFileRenderer/VirtualFileRenderer.test.tsx | 5 ----- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/ui/VirtualFileRenderer/ColorBar.test.tsx b/src/ui/VirtualFileRenderer/ColorBar.test.tsx index 91b403f0a5..d26ea777f3 100644 --- a/src/ui/VirtualFileRenderer/ColorBar.test.tsx +++ b/src/ui/VirtualFileRenderer/ColorBar.test.tsx @@ -1,5 +1,5 @@ import * as Sentry from '@sentry/react' -import { cleanup, render, screen } from '@testing-library/react' +import { render, screen } from '@testing-library/react' import { ColorBar, findCoverage } from './ColorBar' @@ -15,10 +15,6 @@ vi.mock('@sentry/react', async () => { } }) -afterEach(() => { - cleanup() -}) - describe('ColorBar', () => { describe('when there is no coverage data', () => { it('does not render', () => { diff --git a/src/ui/VirtualFileRenderer/VirtualFileRenderer.test.tsx b/src/ui/VirtualFileRenderer/VirtualFileRenderer.test.tsx index 9896e4f114..edc38d0956 100644 --- a/src/ui/VirtualFileRenderer/VirtualFileRenderer.test.tsx +++ b/src/ui/VirtualFileRenderer/VirtualFileRenderer.test.tsx @@ -1,6 +1,5 @@ import * as Sentry from '@sentry/react' import { - cleanup, fireEvent, render, screen, @@ -97,10 +96,6 @@ const wrapper = ) -afterEach(() => { - cleanup() -}) - describe('VirtualFileRenderer', () => { function setup() { const user = userEvent.setup()