The actual snapshot is saved in response.test.js.snap
.
Generated by AVA.
Snapshot 1
`data: {"choices":[{"index":0,"delta":{"content":"","role":"assistant"}}]}␊
␊
`
Snapshot 1
`data: {"choices":[{"index":0,"finish_reason":"stop","delta":{"content":null}}]}␊
␊
data: [DONE]␊
␊
`
Snapshot 1
`data: {"choices":[{"index":0,"delta":{"content":"test","role":"assistant"}}]}␊
␊
`
Snapshot 1
`event: copilot_confirmation␊
data: {"type":"action","title":"title","message":"message","confirmation":{"id":"123","foo":"bar"}}␊
␊
`
Snapshot 1
`event: copilot_errors␊
data: [{"type":"reference","code":"1","message":"test reference error","identifier":"reference-identifier"},{"type":"function","code":"1","message":"test function error","identifier":"function-identifier"},{"type":"agent","code":"1","message":"test agent error","identifier":"agent-identifier"}]␊
␊
`
Snapshot 1
`event: copilot_references␊
data: [{"type":"test.story","id":"test","data":{"file":"test.js","start":"1","end":"42","content":"function test() {...}"},"is_implicit":false,"metadata":{"display_name":"Lines 1-42 from test.js","display_icon":"test-icon","display_url":"http://github.com/monalisa/hello-world/blob/main/test.js#L1-L42"}}]␊
␊
`