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
15 changes: 7 additions & 8 deletions doc/api/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -4104,8 +4104,8 @@ added:
If unspecified, subtests inherit this value from their parent.
**Default:** `Infinity`.

This function is used to create a hook running before
subtest of the current test.
This function registers a hook that runs before any subtests of the current
test.

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

Expand All @@ -4126,8 +4126,8 @@ added:
If unspecified, subtests inherit this value from their parent.
**Default:** `Infinity`.

This function is used to create a hook running
before each subtest of the current test.
This function registers a hook that runs before each subtest of the current
test.

```js
test('top level test', async (t) => {
Expand Down Expand Up @@ -4160,8 +4160,7 @@ added:
If unspecified, subtests inherit this value from their parent.
**Default:** `Infinity`.

This function is used to create a hook that runs after the current test
finishes.
This function registers a hook that runs after the current test finishes.

```js
test('top level test', async (t) => {
Expand Down Expand Up @@ -4189,8 +4188,8 @@ added:
If unspecified, subtests inherit this value from their parent.
**Default:** `Infinity`.

This function is used to create a hook running
after each subtest of the current test.
This function registers a hook that runs after each subtest of the current
test.

```js
test('top level test', async (t) => {
Expand Down
Loading