Skip to content

Commit

Permalink
more wat
Browse files Browse the repository at this point in the history
  • Loading branch information
72636c authored Jun 25, 2024
1 parent 703e3a8 commit 0ed68db
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ This had a few downsides:

## `createDestination`

`@seek/logger` now bundles a convenient mechanism for recording logging calls.
This is built on Pino's support for customisable [destinations].
`@seek/logger` now bundles a convenient mechanism for recording logging calls,
built on Pino's support for customisable [destinations].

[destinations]: https://github.com/pinojs/pino/blob/v9.2.1/docs/api.md#destination

In practice, this may look like the following:
In practice, this looks like the following:

```typescript
import createLogger, { createDestination } from '@seek/logger';
Expand All @@ -88,7 +88,6 @@ afterEach(stdoutMock.clear);

// ...

expect(infoSpy).toHaveBeenCalledTimes(1);
expect(stdoutMock.onlyCall()).toMatchObject({
id: '123',
level: 30,
Expand Down

0 comments on commit 0ed68db

Please sign in to comment.