File tree Expand file tree Collapse file tree
packages/vitest/src/node/reporters/renderers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ export function getStateString(
151151
152152 const passed = tasks . reduce ( ( acc , i ) => {
153153 // Exclude expected failures from passed count
154- if ( i . result ?. state === 'pass' && i . type === 'test' && ( i as any ) . fails ) {
154+ if ( i . result ?. state === 'pass' && i . type === 'test' && i . fails ) {
155155 return acc
156156 }
157157 return i . result ?. state === 'pass' ? acc + 1 : acc
@@ -161,7 +161,7 @@ export function getStateString(
161161 const todo = tasks . reduce ( ( acc , i ) => i . mode === 'todo' ? acc + 1 : acc , 0 )
162162 const expectedFail = tasks . reduce ( ( acc , i ) => {
163163 // Count tests that are marked as .fails and passed (which means they failed as expected)
164- if ( i . result ?. state === 'pass' && i . type === 'test' && ( i as any ) . fails ) {
164+ if ( i . result ?. state === 'pass' && i . type === 'test' && i . fails ) {
165165 return acc + 1
166166 }
167167 return acc
You can’t perform that action at this time.
0 commit comments