@@ -528,7 +528,7 @@ before each subtest of the current suite.
528
528
529
529
``` js
530
530
describe (' tests' , async () => {
531
- beforeEach (() => t .diagnostics (' about to run a test' ));
531
+ beforeEach (() => t .diagnostic (' about to run a test' ));
532
532
it (' is a subtest' , () => {
533
533
assert .ok (' some relevant assertion here' );
534
534
});
@@ -557,7 +557,7 @@ after each subtest of the current test.
557
557
558
558
``` js
559
559
describe (' tests' , async () => {
560
- afterEach (() => t .diagnostics (' about to run a test' ));
560
+ afterEach (() => t .diagnostic (' about to run a test' ));
561
561
it (' is a subtest' , () => {
562
562
assert .ok (' some relevant assertion here' );
563
563
});
@@ -598,7 +598,7 @@ before each subtest of the current test.
598
598
599
599
``` js
600
600
test (' top level test' , async (t ) => {
601
- t .beforeEach ((t ) => t .diagnostics (` about to run ${ t .name } ` ));
601
+ t .beforeEach ((t ) => t .diagnostic (` about to run ${ t .name } ` ));
602
602
await t .test (
603
603
' This is a subtest' ,
604
604
(t ) => {
@@ -630,7 +630,7 @@ after each subtest of the current test.
630
630
631
631
``` js
632
632
test (' top level test' , async (t ) => {
633
- t .afterEach ((t ) => t .diagnostics (` finished running ${ t .name } ` ));
633
+ t .afterEach ((t ) => t .diagnostic (` finished running ${ t .name } ` ));
634
634
await t .test (
635
635
' This is a subtest' ,
636
636
(t ) => {
0 commit comments