Skip to content

Commit f5eec9a

Browse files
committed
fix(sim-cli): embed test used a DOM-only type the package tsconfig lacks
Claude-Session: https://claude.ai/code/session_01CgaxNAaeD3taGdghbXn17w
1 parent e4d9e03 commit f5eec9a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/sim-cli/src/embed.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ afterEach(() => {
2121
describe('runEmbeddedCli', () => {
2222
it('runs a real command in-process with the injected identity, capturing stdout', async () => {
2323
const seen: { url: string; auth: string | null }[] = []
24-
vi.stubGlobal('fetch', async (input: RequestInfo | URL, init?: RequestInit) => {
24+
vi.stubGlobal('fetch', async (input: string | URL | Request, init?: RequestInit) => {
2525
const url = String(input)
2626
seen.push({ url, auth: new Headers(init?.headers).get('x-api-key') })
2727
return jsonResponse({ data: [{ id: 'wf-1', name: 'Email digest' }], nextCursor: null })
@@ -58,7 +58,7 @@ describe('runEmbeddedCli', () => {
5858
})
5959

6060
it('isolates concurrent invocations (identity and output never interleave)', async () => {
61-
vi.stubGlobal('fetch', async (input: RequestInfo | URL) => {
61+
vi.stubGlobal('fetch', async (input: string | URL | Request) => {
6262
const url = new URL(String(input))
6363
// Answer each invocation with its own workspace id so cross-talk is visible.
6464
const workspaceId = url.searchParams.get('workspaceId') ?? 'missing'

0 commit comments

Comments
 (0)