@@ -326,7 +326,10 @@ describe("http-recorder", () => {
326326
327327 test ( "auto mode records to disk when the cassette is missing" , async ( ) => {
328328 const directory = fs . mkdtempSync ( path . join ( os . tmpdir ( ) , "http-recorder-auto-record-" ) )
329- using server = Bun . serve ( { port : 0 , fetch : ( ) => new Response ( '{"reply":"recorded"}' , { headers : { "content-type" : "application/json" } } ) } )
329+ using server = Bun . serve ( {
330+ port : 0 ,
331+ fetch : ( ) => new Response ( '{"reply":"recorded"}' , { headers : { "content-type" : "application/json" } } ) ,
332+ } )
330333 const url = `http://127.0.0.1:${ server . port } /echo`
331334 // CI=true forces replay; clear it so we exercise the local-dev auto-record path.
332335 const previous = process . env . CI
@@ -370,10 +373,18 @@ describe("http-recorder", () => {
370373 test ( "Cassette.list enumerates recorded cassette names" , async ( ) => {
371374 const directory = fs . mkdtempSync ( path . join ( os . tmpdir ( ) , "http-recorder-list-" ) )
372375 await seedCassetteDirectory ( directory , "alpha/one" , [
373- { transport : "http" , request : { method : "GET" , url : "https://x.test/a" , headers : { } , body : "" } , response : { status : 200 , headers : { } , body : "a" } } ,
376+ {
377+ transport : "http" ,
378+ request : { method : "GET" , url : "https://x.test/a" , headers : { } , body : "" } ,
379+ response : { status : 200 , headers : { } , body : "a" } ,
380+ } ,
374381 ] )
375382 await seedCassetteDirectory ( directory , "beta" , [
376- { transport : "http" , request : { method : "GET" , url : "https://x.test/b" , headers : { } , body : "" } , response : { status : 200 , headers : { } , body : "b" } } ,
383+ {
384+ transport : "http" ,
385+ request : { method : "GET" , url : "https://x.test/b" , headers : { } , body : "" } ,
386+ response : { status : 200 , headers : { } , body : "b" } ,
387+ } ,
377388 ] )
378389
379390 const names = await Effect . runPromise (
@@ -415,7 +426,9 @@ describe("http-recorder", () => {
415426 transport : "websocket" ,
416427 open : { url : "wss://example.test/binary" , headers : { } } ,
417428 client : [ ] ,
418- server : [ { kind : "binary" , body : Buffer . from ( binaryServer ) . toString ( "base64" ) , bodyEncoding : "base64" } ] ,
429+ server : [
430+ { kind : "binary" , body : Buffer . from ( binaryServer ) . toString ( "base64" ) , bodyEncoding : "base64" } ,
431+ ] ,
419432 } ,
420433 ] ,
421434 } ) ,
0 commit comments