GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: improve TestContext hook descriptions · nodejs/node@d562716

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • test.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/test.md‎

Copy file name to clipboardExpand all lines: doc/api/test.md
+7-8Lines changed: 7 additions & 8 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -4082,8 +4082,8 @@ added:
40824082
If unspecified, subtests inherit this value from their parent.
40834083
**Default:** `Infinity`.
40844084

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

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

@@ -4104,8 +4104,8 @@ added:
41044104
If unspecified, subtests inherit this value from their parent.
41054105
**Default:** `Infinity`.
41064106

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

41104110
```js
41114111
test('top level test', async (t) => {
@@ -4138,8 +4138,7 @@ added:
41384138
If unspecified, subtests inherit this value from their parent.
41394139
**Default:** `Infinity`.
41404140

4141-
This function is used to create a hook that runs after the current test
4142-
finishes.
4141+
This function registers a hook that runs after the current test finishes.
41434142

41444143
```js
41454144
test('top level test', async (t) => {
@@ -4167,8 +4166,8 @@ added:
41674166
If unspecified, subtests inherit this value from their parent.
41684167
**Default:** `Infinity`.
41694168

4170-
This function is used to create a hook running
4171-
after each subtest of the current test.
4169+
This function registers a hook that runs after each subtest of the current
4170+
test.
41724171

41734172
```js
41744173
test('top level test', async (t) => {

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.