Skip to content

Commit

Permalink
adding test for optional level/options
Browse files Browse the repository at this point in the history
  • Loading branch information
krosenk729 committed Oct 19, 2023
1 parent 0b92542 commit 5010260
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/types/pino-transport.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,23 @@ expectType<pino.Logger>(pino({
},
}))

const transportsWithoutOptions = pino.transport({
targets: [
{ target: '#pino/pretty' },
{ target: '#pino/file' }
], levels: { foo: 35 }
})
pino(transports)

expectType<pino.Logger>(pino({
transport: {
targets: [
{ target: '#pino/pretty' },
{ target: '#pino/file' }
], levels: { foo: 35 }
},
}))

const pipelineTransport = pino.transport({
pipeline: [{
target: './my-transform.js'
Expand Down

0 comments on commit 5010260

Please sign in to comment.