Skip to content

Commit a020e86

Browse files
ci: apply automated fixes
1 parent 0f1f2ce commit a020e86

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

packages/ai/src/logger/console-logger.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@ function stringifyMetaSafely(value: unknown): string {
5858
(_key, entry: unknown) => {
5959
if (typeof entry === 'bigint') return entry.toString()
6060
if (entry instanceof Error) {
61-
return { name: entry.name, message: entry.message, stack: entry.stack }
61+
return {
62+
name: entry.name,
63+
message: entry.message,
64+
stack: entry.stack,
65+
}
6266
}
6367
if (typeof entry === 'object' && entry !== null) {
6468
if (seen.has(entry)) return '[Circular]'

testing/e2e/tests/workerd-console-logger.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ test.describe('ConsoleLogger on real workerd', () => {
7373

7474
const output = () => Buffer.concat(chunks).toString('utf8')
7575
// Logs flush asynchronously from the workerd process.
76-
await expect.poll(output, { timeout: 10_000 }).toContain(
77-
'E2E-WARN-HEADLINE',
78-
)
76+
await expect
77+
.poll(output, { timeout: 10_000 })
78+
.toContain('E2E-WARN-HEADLINE')
7979

8080
// Headlines for every level.
8181
expect(output()).toContain('E2E-DEBUG-HEADLINE')

0 commit comments

Comments
 (0)