File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,10 @@ function createTLogger(opts?: Partial<LoggerOptions>) {
10
10
] as const ;
11
11
}
12
12
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' , ( ) => {
14
17
const [ log , writter ] = createTLogger ( ) ;
15
18
16
19
const err = new Error ( 'Woah!' ) ;
@@ -281,7 +284,10 @@ it('should format string', () => {
281
284
` ) ;
282
285
} ) ;
283
286
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' , ( ) => {
285
291
const [ log , writer ] = createTLogger ( ) ;
286
292
287
293
const err = new Error ( 'Woah!' ) ;
You can’t perform that action at this time.
0 commit comments