Skip to content

Commit

Permalink
fix types after pino 8.7.0 change (#4365)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollina committed Oct 21, 2022
1 parent 3e47a77 commit 97b7a4a
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions test/types/logger.test-d.ts
Expand Up @@ -123,35 +123,6 @@ const serverAutoInferredFileOption = fastify({

expectType<FastifyBaseLogger>(serverAutoInferredFileOption.log)

const serverAutoInferredPinoPrettyBooleanOption = fastify({
logger: {
prettyPrint: true
}
})

expectType<FastifyBaseLogger>(serverAutoInferredPinoPrettyBooleanOption.log)

const serverAutoInferredPinoPrettyObjectOption = fastify({
logger: {
prettyPrint: {
translateTime: true,
levelFirst: false,
messageKey: 'msg',
timestampKey: 'time',
messageFormat: false,
colorize: true,
crlf: false,
errorLikeObjectKeys: ['err', 'error'],
errorProps: '',
search: 'foo == `bar`',
ignore: 'pid,hostname',
suppressFlushSyncWarning: true
}
}
})

expectType<FastifyBaseLogger>(serverAutoInferredPinoPrettyObjectOption.log)

const serverAutoInferredSerializerObjectOption = fastify({
logger: {
serializers: {
Expand Down Expand Up @@ -200,9 +171,6 @@ const passPinoOption = fastify({
redact: ['custom'],
messageKey: 'msg',
nestedKey: 'nested',
prettyPrint: {

},
enabled: true
}
})
Expand Down

0 comments on commit 97b7a4a

Please sign in to comment.