mirror of
https://github.com/strands-agents/harness-sdk.git
synced 2026-10-02 02:44:48 +08:00
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:
co-authored by
Claude Sonnet 4.5
parent
a51fabbda5
commit
4fad779c2a
@@ -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')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user