Skip to content

Commit fa94e49

Browse files
fix: remove redundant vi.clearAllMocks() flagged by oxlint
The project test setup already clears mocks globally; the explicit beforeEach call is a no-op and triggers the oxlint vitest/no-redundant-mock-clear rule. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 68a1714 commit fa94e49

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/components/rightSidePanel/parameters/PanelSearchHeader.test.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { fireEvent, render, screen, waitFor } from '@testing-library/vue'
22
import { h } from 'vue'
33
import { createI18n } from 'vue-i18n'
4-
import { beforeEach, describe, expect, it, vi } from 'vitest'
4+
import { describe, expect, it, vi } from 'vitest'
55

66
import PanelSearchHeader from './PanelSearchHeader.vue'
77

@@ -25,10 +25,6 @@ function renderHeader(
2525
}
2626

2727
describe('PanelSearchHeader', () => {
28-
beforeEach(() => {
29-
vi.clearAllMocks()
30-
})
31-
3228
it('forwards the searcher to the embedded search input', async () => {
3329
const searcher = vi.fn().mockResolvedValue(undefined)
3430
renderHeader(searcher)

0 commit comments

Comments
 (0)