Skip to content
Permalink
Browse files
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`.

PR-URL: #44603
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
meyfa authored and RafaelGSS committed Sep 26, 2022
1 parent 6c55734 commit 03705639c4fccd973ea120276e56beb40db44088
Showing 1 changed file with 4 additions and 4 deletions.
@@ -475,7 +475,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
@@ -503,7 +503,7 @@ describe('tests', async () => {
});
```

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

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

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

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

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

<!-- YAML
added: v18.8.0

0 comments on commit 0370563

Please sign in to comment.