Skip to content
This repository was archived by the owner on Jun 3, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
- name: Run unit tests
run: npm run test:all:coverage

- name: Run WASM unit tests
run: npm run test -w strands-wasm

- name: Upload test artifacts
if: always()
uses: actions/upload-artifact@v7
Expand Down
2 changes: 1 addition & 1 deletion strands-wasm/__tests__/lifecycle.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, expect } from 'vitest'
import { LifecycleBridge } from '../../entry'
import { LifecycleBridge } from '../entry'
import { Agent, FunctionTool } from '@strands-agents/sdk'
import { MockMessageModel } from '$/fixtures/mock-message-model'

Expand Down
4 changes: 3 additions & 1 deletion strands-wasm/__tests__/mapping.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
mapToolStreamEvent,
parseInput,
parseSaveLatestStrategy,
} from '../../entry'
} from '../entry'
import type { AgentStreamEvent, ModelStreamEvent, StopReason } from '@strands-agents/sdk'
import { ToolStreamEvent, ToolUseBlock, ToolResultBlock, TextBlock, ReasoningBlock } from '@strands-agents/sdk'

Expand Down Expand Up @@ -120,6 +120,7 @@ describe('mapStopReason', () => {
reason: 'end-turn',
usage: undefined,
metrics: undefined,
structuredOutput: undefined,
})
})

Expand All @@ -139,6 +140,7 @@ describe('mapStopReason', () => {
cacheWriteInputTokens: undefined,
},
metrics: { latencyMs: 100 },
structuredOutput: undefined,
})
})
})
Expand Down
3 changes: 2 additions & 1 deletion strands-wasm/__tests__/stream.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, expect, vi } from 'vitest'
import { api, LifecycleBridge } from '../../entry'
import { api, LifecycleBridge } from '../entry'
import { Agent } from '@strands-agents/sdk'
import { MockMessageModel } from '$/fixtures/mock-message-model'

Expand Down Expand Up @@ -83,6 +83,7 @@ describe('ResponseStreamImpl.readNext', () => {
cacheWriteInputTokens: undefined,
},
metrics: { latencyMs: 100 },
structuredOutput: undefined,
},
},
])
Expand Down
2 changes: 1 addition & 1 deletion strands-wasm/__tests__/tool-bridge.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, it, expect, vi, beforeEach } from 'vitest'
import { createTools } from '../../entry'
import { createTools } from '../entry'
import { callTool } from 'strands:agent/tool-provider'

const emptyToolContext = { toolUse: { toolUseId: '' } } as any
Expand Down