@@ -82,15 +82,28 @@ describe('require(\'node:test\').run', { concurrency: true }, () => {
82
82
] ) ;
83
83
} ) ;
84
84
85
- it ( 'should be piped with spec' , async ( ) => {
86
- const specReporter = new spec ( ) ;
87
- const result = await run ( {
88
- files : [ join ( testFixtures , 'default-behavior/test/random.cjs' ) ]
89
- } ) . compose ( specReporter ) . toArray ( ) ;
90
- const stringResults = result . map ( ( bfr ) => bfr . toString ( ) ) ;
91
- assert . match ( stringResults [ 0 ] , / t h i s s h o u l d p a s s / ) ;
92
- assert . match ( stringResults [ 1 ] , / t e s t s 1 / ) ;
93
- assert . match ( stringResults [ 1 ] , / p a s s 1 / ) ;
85
+ describe ( 'should be piped with spec reporter' , ( ) => {
86
+ it ( 'new spec' , async ( ) => {
87
+ const specReporter = new spec ( ) ;
88
+ const result = await run ( {
89
+ files : [ join ( testFixtures , 'default-behavior/test/random.cjs' ) ]
90
+ } ) . compose ( specReporter ) . toArray ( ) ;
91
+ const stringResults = result . map ( ( bfr ) => bfr . toString ( ) ) ;
92
+ assert . match ( stringResults [ 0 ] , / t h i s s h o u l d p a s s / ) ;
93
+ assert . match ( stringResults [ 1 ] , / t e s t s 1 / ) ;
94
+ assert . match ( stringResults [ 1 ] , / p a s s 1 / ) ;
95
+ } ) ;
96
+
97
+ it ( 'spec()' , async ( ) => {
98
+ const specReporter = spec ( ) ;
99
+ const result = await run ( {
100
+ files : [ join ( testFixtures , 'default-behavior/test/random.cjs' ) ]
101
+ } ) . compose ( specReporter ) . toArray ( ) ;
102
+ const stringResults = result . map ( ( bfr ) => bfr . toString ( ) ) ;
103
+ assert . match ( stringResults [ 0 ] , / t h i s s h o u l d p a s s / ) ;
104
+ assert . match ( stringResults [ 1 ] , / t e s t s 1 / ) ;
105
+ assert . match ( stringResults [ 1 ] , / p a s s 1 / ) ;
106
+ } ) ;
94
107
} ) ;
95
108
96
109
it ( 'should be piped with tap' , async ( ) => {
0 commit comments