@@ -130,27 +130,33 @@ describe('default reporter', async () => {
130130
131131 test ( 'prints skipped tests by default when a single file is run' , async ( ) => {
132132 const { stdout } = await runVitest ( {
133- include : [ 'fixtures/all-passing-or-skipped .test.ts' ] ,
133+ include : [ 'fixtures/pass-and-skip-test-suites .test.ts' ] ,
134134 reporters : [ [ 'default' , { isTTY : true , summary : false } ] ] ,
135135 config : 'fixtures/vitest.config.ts' ,
136136 } )
137137
138- expect ( stdout ) . toContain ( '✓ fixtures/all-passing-or-skipped.test.ts (2 tests | 1 skipped)' )
139- expect ( stdout ) . toContain ( '✓ 2 + 3 = 5' )
140- expect ( stdout ) . toContain ( '↓ 3 + 3 = 6' )
138+ expect ( trimReporterOutput ( stdout ) ) . toMatchInlineSnapshot ( `
139+ "✓ fixtures/pass-and-skip-test-suites.test.ts (4 tests | 2 skipped) [...]ms
140+ ✓ passing test #1 [...]ms
141+ ↓ skipped test #1
142+ ✓ passing suite > passing test #2 [...]ms
143+ ↓ skipped suite > skipped test #2"
144+ ` )
141145 } )
142146
143147 test ( 'hides skipped tests when --hideSkippedTests and a single file is run' , async ( ) => {
144148 const { stdout } = await runVitest ( {
145- include : [ 'fixtures/all-passing-or-skipped .test.ts' ] ,
149+ include : [ 'fixtures/pass-and-skip-test-suites .test.ts' ] ,
146150 reporters : [ [ 'default' , { isTTY : true , summary : false } ] ] ,
147151 hideSkippedTests : true ,
148152 config : false ,
149153 } )
150154
151- expect ( stdout ) . toContain ( '✓ fixtures/all-passing-or-skipped.test.ts (2 tests | 1 skipped)' )
152- expect ( stdout ) . toContain ( '✓ 2 + 3 = 5' )
153- expect ( stdout ) . not . toContain ( '↓ 3 + 3 = 6' )
155+ expect ( trimReporterOutput ( stdout ) ) . toMatchInlineSnapshot ( `
156+ "✓ fixtures/pass-and-skip-test-suites.test.ts (4 tests | 2 skipped) [...]ms
157+ ✓ passing test #1 [...]ms
158+ ✓ passing suite > passing test #2 [...]ms"
159+ ` )
154160 } )
155161
156162 test ( 'prints retry count' , async ( ) => {
0 commit comments