fix: remove vi.restoreAllMocks() breaking Anthropic mock in browser tests (#700)

Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Nick Clegg
2026-03-19 22:16:48 +00:00
committed by GitHub
co-authored by Claude Sonnet 4.5
parent a51fabbda5
commit 4fad779c2a
-1
View File
@@ -42,7 +42,6 @@ vi.mock('@anthropic-ai/sdk', () => {
describe('AnthropicModel', () => {
beforeEach(() => {
vi.clearAllMocks()
vi.restoreAllMocks()
if (isNode) {
vi.stubEnv('ANTHROPIC_API_KEY', 'sk-ant-test-env')
}