Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
doc: fix heading levels for test runner hooks
before/after/beforeEach/afterEach are exported directly from `node:test`
and should not be indented under `it.todo`.
  • Loading branch information
meyfa committed Sep 11, 2022
commit 2fe2916ef36936d11b140773ae664316b11c0832
8 changes: 4 additions & 4 deletions doc/api/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ same as [`it([name], { skip: true }[, fn])`][it options].
Shorthand for marking a test as `TODO`,
same as [`it([name], { todo: true }[, fn])`][it options].

### `before([, fn][, options])`
## `before([, fn][, options])`

<!-- YAML
added: v18.8.0
Expand Down Expand Up @@ -512,7 +512,7 @@ describe('tests', async () => {
});
```

### `after([, fn][, options])`
## `after([, fn][, options])`

<!-- YAML
added: v18.8.0
Expand Down Expand Up @@ -540,7 +540,7 @@ describe('tests', async () => {
});
```

### `beforeEach([, fn][, options])`
## `beforeEach([, fn][, options])`

<!-- YAML
added: v18.8.0
Expand Down Expand Up @@ -569,7 +569,7 @@ describe('tests', async () => {
});
```

### `afterEach([, fn][, options])`
## `afterEach([, fn][, options])`

<!-- YAML
added: v18.8.0
Expand Down