@@ -159,7 +159,7 @@ Running tests can also be done using `describe` to declare a suite
159
159
and ` it ` to declare a test.
160
160
A suite is used to organize and group related tests together.
161
161
` it ` is an alias for ` test ` , except there is no test context passed,
162
- since nesting is done using suites, as demonstrated in this example
162
+ since nesting is done using suites.
163
163
164
164
``` js
165
165
describe (' A thing' , () => {
@@ -179,7 +179,7 @@ describe('A thing', () => {
179
179
});
180
180
```
181
181
182
- ` describe ` and ` it ` are imported from the ` test ` module
182
+ ` describe ` and ` it ` are imported from the ` test ` module.
183
183
184
184
``` mjs
185
185
import { describe , it } from ' test' ;
@@ -392,7 +392,7 @@ thus prevent the scheduled cancellation.
392
392
results. ** Default:** The ` name ` property of ` fn ` , or ` '<anonymous>' ` if ` fn `
393
393
does not have a name.
394
394
* ` options ` {Object} Configuration options for the suite.
395
- supports the same options as ` test([name][, options][, fn]) `
395
+ supports the same options as ` test([name][, options][, fn]) ` .
396
396
* ` fn ` {Function|AsyncFunction} The function under suite
397
397
declaring all subtests and subsuites.
398
398
The first argument to this function is a [ ` SuiteContext ` ] [ ] object.
@@ -403,7 +403,7 @@ The `describe()` function imported from the `test` module. Each
403
403
invocation of this function results in the creation of a Subtest
404
404
and a test point in the TAP output.
405
405
After invocation of top level ` describe ` functions,
406
- all top level tests and suites will execute
406
+ all top level tests and suites will execute.
407
407
408
408
## ` describe.skip([name][, options][, fn]) `
409
409
@@ -448,7 +448,7 @@ same as [`it([name], { todo: true }[, fn])`][it options].
448
448
function.
449
449
* ` options ` {Object} Configuration options for the hook. The following
450
450
properties are supported:
451
- * ` signal ` {AbortSignal} Allows aborting an in-progress hook
451
+ * ` signal ` {AbortSignal} Allows aborting an in-progress hook.
452
452
* ` timeout ` {number} A number of milliseconds the hook will fail after.
453
453
If unspecified, subtests inherit this value from their parent.
454
454
** Default:** ` Infinity ` .
@@ -472,7 +472,7 @@ describe('tests', async () => {
472
472
function.
473
473
* ` options ` {Object} Configuration options for the hook. The following
474
474
properties are supported:
475
- * ` signal ` {AbortSignal} Allows aborting an in-progress hook
475
+ * ` signal ` {AbortSignal} Allows aborting an in-progress hook.
476
476
* ` timeout ` {number} A number of milliseconds the hook will fail after.
477
477
If unspecified, subtests inherit this value from their parent.
478
478
** Default:** ` Infinity ` .
@@ -496,7 +496,7 @@ describe('tests', async () => {
496
496
function.
497
497
* ` options ` {Object} Configuration options for the hook. The following
498
498
properties are supported:
499
- * ` signal ` {AbortSignal} Allows aborting an in-progress hook
499
+ * ` signal ` {AbortSignal} Allows aborting an in-progress hook.
500
500
* ` timeout ` {number} A number of milliseconds the hook will fail after.
501
501
If unspecified, subtests inherit this value from their parent.
502
502
** Default:** ` Infinity ` .
@@ -521,7 +521,7 @@ describe('tests', async () => {
521
521
function.
522
522
* ` options ` {Object} Configuration options for the hook. The following
523
523
properties are supported:
524
- * ` signal ` {AbortSignal} Allows aborting an in-progress hook
524
+ * ` signal ` {AbortSignal} Allows aborting an in-progress hook.
525
525
* ` timeout ` {number} A number of milliseconds the hook will fail after.
526
526
If unspecified, subtests inherit this value from their parent.
527
527
** Default:** ` Infinity ` .
@@ -552,7 +552,7 @@ exposed as part of the API.
552
552
function.
553
553
* ` options ` {Object} Configuration options for the hook. The following
554
554
properties are supported:
555
- * ` signal ` {AbortSignal} Allows aborting an in-progress hook
555
+ * ` signal ` {AbortSignal} Allows aborting an in-progress hook.
556
556
* ` timeout ` {number} A number of milliseconds the hook will fail after.
557
557
If unspecified, subtests inherit this value from their parent.
558
558
** Default:** ` Infinity ` .
@@ -580,7 +580,7 @@ test('top level test', async (t) => {
580
580
function.
581
581
* ` options ` {Object} Configuration options for the hook. The following
582
582
properties are supported:
583
- * ` signal ` {AbortSignal} Allows aborting an in-progress hook
583
+ * ` signal ` {AbortSignal} Allows aborting an in-progress hook.
584
584
* ` timeout ` {number} A number of milliseconds the hook will fail after.
585
585
If unspecified, subtests inherit this value from their parent.
586
586
** Default:** ` Infinity ` .
@@ -610,7 +610,7 @@ not return a value.
610
610
611
611
` context.name `
612
612
613
- The name of the test
613
+ The name of the test.
614
614
615
615
### ` context.runOnly(shouldRunOnlyTests) `
616
616
@@ -688,7 +688,7 @@ exposed as part of the API.
688
688
689
689
### ` context.name `
690
690
691
- The name of the suite
691
+ The name of the suite.
692
692
693
693
### ` context.signal `
694
694
0 commit comments