Skip to content

Commit

Permalink
remove manual cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholas-codecov committed Sep 20, 2024
1 parent 6331913 commit bcc8e57
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
6 changes: 1 addition & 5 deletions src/ui/VirtualFileRenderer/ColorBar.test.tsx
Original file line number Diff line number Diff line change
@@ -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'

Expand All @@ -15,10 +15,6 @@ vi.mock('@sentry/react', async () => {
}
})

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

describe('ColorBar', () => {
describe('when there is no coverage data', () => {
it('does not render', () => {
Expand Down
5 changes: 0 additions & 5 deletions src/ui/VirtualFileRenderer/VirtualFileRenderer.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as Sentry from '@sentry/react'
import {
cleanup,
fireEvent,
render,
screen,
Expand Down Expand Up @@ -97,10 +96,6 @@ const wrapper =
</MemoryRouter>
)

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

describe('VirtualFileRenderer', () => {
function setup() {
const user = userEvent.setup()
Expand Down

0 comments on commit bcc8e57

Please sign in to comment.