Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c76d182

Browse filesBrowse files
meyfaRafaelGSS
authored andcommitted
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>
1 parent 4d6b46e commit c76d182
Copy full SHA for c76d182

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Open diff view settings
Collapse file

‎doc/api/test.md‎

Copy file name to clipboardExpand all lines: doc/api/test.md
+4-4Lines changed: 4 additions & 4 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ same as [`it([name], { skip: true }[, fn])`][it options].
480480
Shorthand for marking a test as `TODO`,
481481
same as [`it([name], { todo: true }[, fn])`][it options].
482482

483-
### `before([, fn][, options])`
483+
## `before([, fn][, options])`
484484

485485
<!-- YAML
486486
added: v18.8.0
@@ -508,7 +508,7 @@ describe('tests', async () => {
508508
});
509509
```
510510

511-
### `after([, fn][, options])`
511+
## `after([, fn][, options])`
512512

513513
<!-- YAML
514514
added: v18.8.0
@@ -536,7 +536,7 @@ describe('tests', async () => {
536536
});
537537
```
538538

539-
### `beforeEach([, fn][, options])`
539+
## `beforeEach([, fn][, options])`
540540

541541
<!-- YAML
542542
added: v18.8.0
@@ -565,7 +565,7 @@ describe('tests', async () => {
565565
});
566566
```
567567

568-
### `afterEach([, fn][, options])`
568+
## `afterEach([, fn][, options])`
569569

570570
<!-- YAML
571571
added: v18.8.0

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.