File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ afterEach(() => {
2121describe ( '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'
You can’t perform that action at this time.
0 commit comments