| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4082,8 +4082,8 @@ added: | |||
| 4082 | 4082 | If unspecified, subtests inherit this value from their parent. | |
| 4083 | 4083 | **Default:** `Infinity`. | |
| 4084 | 4084 | ||
| 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. | ||
| 4087 | 4087 | ||
| 4088 | 4088 | ### `context.beforeEach([fn][, options])` | |
| 4089 | 4089 | ||
@@ -4104,8 +4104,8 @@ added: | |||
| 4104 | 4104 | If unspecified, subtests inherit this value from their parent. | |
| 4105 | 4105 | **Default:** `Infinity`. | |
| 4106 | 4106 | ||
| 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. | ||
| 4109 | 4109 | ||
| 4110 | 4110 | ```js | |
| 4111 | 4111 | test('top level test', async (t) => { | |
@@ -4138,8 +4138,7 @@ added: | |||
| 4138 | 4138 | If unspecified, subtests inherit this value from their parent. | |
| 4139 | 4139 | **Default:** `Infinity`. | |
| 4140 | 4140 | ||
| 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. | ||
| 4143 | 4142 | ||
| 4144 | 4143 | ```js | |
| 4145 | 4144 | test('top level test', async (t) => { | |
@@ -4167,8 +4166,8 @@ added: | |||
| 4167 | 4166 | If unspecified, subtests inherit this value from their parent. | |
| 4168 | 4167 | **Default:** `Infinity`. | |
| 4169 | 4168 | ||
| 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. | ||
| 4172 | 4171 | ||
| 4173 | 4172 | ```js | |
| 4174 | 4173 | test('top level test', async (t) => { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments