Skip to content

Commit 98ce408

Browse files
committed
skip error serial on bun
1 parent 0cfc5ed commit 98ce408

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

packages/logger/tests/Logger.test.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ function createTLogger(opts?: Partial<LoggerOptions>) {
1010
] as const;
1111
}
1212

13-
it('should write logs with levels, message and attributes', () => {
13+
it.skipIf(
14+
// skip on bun because bun serialises errors differently from node (failing the snapshot)
15+
globalThis.Bun,
16+
)('should write logs with levels, message and attributes', () => {
1417
const [log, writter] = createTLogger();
1518

1619
const err = new Error('Woah!');
@@ -281,7 +284,10 @@ it('should format string', () => {
281284
`);
282285
});
283286

284-
it('should write logs with unexpected attributes', () => {
287+
it.skipIf(
288+
// skip on bun because bun serialises errors differently from node (failing the snapshot)
289+
globalThis.Bun,
290+
)('should write logs with unexpected attributes', () => {
285291
const [log, writer] = createTLogger();
286292

287293
const err = new Error('Woah!');

0 commit comments

Comments
 (0)