@@ -524,7 +524,7 @@ before each subtest of the current suite.
524
524
525
525
``` js
526
526
describe (' tests' , async () => {
527
- beforeEach (() => t .diagnostics (' about to run a test' ));
527
+ beforeEach (() => t .diagnostic (' about to run a test' ));
528
528
it (' is a subtest' , () => {
529
529
assert .ok (' some relevant assertion here' );
530
530
});
@@ -553,7 +553,7 @@ after each subtest of the current test.
553
553
554
554
``` js
555
555
describe (' tests' , async () => {
556
- afterEach (() => t .diagnostics (' about to run a test' ));
556
+ afterEach (() => t .diagnostic (' about to run a test' ));
557
557
it (' is a subtest' , () => {
558
558
assert .ok (' some relevant assertion here' );
559
559
});
@@ -592,7 +592,7 @@ before each subtest of the current test.
592
592
593
593
``` js
594
594
test (' top level test' , async (t ) => {
595
- t .beforeEach ((t ) => t .diagnostics (` about to run ${ t .name } ` ));
595
+ t .beforeEach ((t ) => t .diagnostic (` about to run ${ t .name } ` ));
596
596
await t .test (
597
597
' This is a subtest' ,
598
598
(t ) => {
@@ -624,7 +624,7 @@ after each subtest of the current test.
624
624
625
625
``` js
626
626
test (' top level test' , async (t ) => {
627
- t .afterEach ((t ) => t .diagnostics (` finished running ${ t .name } ` ));
627
+ t .afterEach ((t ) => t .diagnostic (` finished running ${ t .name } ` ));
628
628
await t .test (
629
629
' This is a subtest' ,
630
630
(t ) => {
0 commit comments