fix: avoid global mock clearing in EditTournamentForm tests
Pull Request / unit-tests (pull_request) Failing after 59s
Pull Request / acceptance-tests (pull_request) Has been skipped
Pull Request / analyze-bump-type (pull_request) Has been skipped

Replace mock.clearAllMocks() with mockFetch.mockClear() to only
clear the specific fetch mock without affecting global module mocks
used by other test files.
This commit is contained in:
2026-04-01 12:20:16 -07:00
parent e4c4333b40
commit 4e3b25e2fc
+2 -1
View File
@@ -40,7 +40,8 @@ const mockTournament = {
describe('EditTournamentForm', () => { describe('EditTournamentForm', () => {
beforeEach(() => { beforeEach(() => {
mock.clearAllMocks() // Only clear the specific mocks we create, not global module mocks
mockFetch.mockClear()
}) })
it('renders form with initial values', () => { it('renders form with initial values', () => {