Skip to content

Commit 84222df

Browse files
committed
log the stream
1 parent dba81c7 commit 84222df

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ui/desktop/tests/integration/goosed.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ describe('goosed API integration tests', () => {
265265
if (done) break;
266266

267267
const chunk = decoder.decode(value, { stream: true });
268+
console.log('stream: ', chunk);
268269

269270
try {
270271
const data = JSON.parse(chunk.replace(/^data:/, ''));
@@ -280,8 +281,9 @@ describe('goosed API integration tests', () => {
280281
// incomplete, so we expect parsing errors.
281282
}
282283
}
283-
} catch {
284+
} catch (error) {
284285
// Reader cancelled or error
286+
console.log('Reader cancelled or error: ', error);
285287
}
286288
clearTimeout(timeout);
287289
}

ui/desktop/vitest.integration.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ export default defineConfig({
1717
hookTimeout: 30000,
1818
pool: 'forks',
1919
singleFork: true,
20+
silent: 'passed-only',
2021
},
2122
});

0 commit comments

Comments
 (0)