@@ -63,16 +63,13 @@ export default async function () {
6363 const { stdout : jsdomStdout } = await ng ( 'test' , '--no-watch' , '--coverage' ) ;
6464 assert . match ( jsdomStdout , expectedMessage , `Expected ${ totalTests } tests to pass in JSDOM mode.` ) ;
6565
66- // TODO: Investigate why coverage-final.json is empty on Windows in JSDOM mode.
67- // For now, skip the coverage report check on Windows.
68- if ( process . platform !== 'win32' ) {
69- // Assert that every generated file is in the coverage report by reading the JSON output.
70- const jsdomSummary = JSON . parse ( await readFile ( coverageJsonPath ) ) ;
71- const jsdomSummaryKeys = Object . keys ( jsdomSummary ) ;
72- for ( const file of generatedFiles ) {
73- const found = jsdomSummaryKeys . some ( ( key ) => key . endsWith ( file ) ) ;
74- assert . ok ( found , `Expected ${ file } to be in the JSDOM coverage report.` ) ;
75- }
66+ // Assert that every generated file is in the coverage report by reading the JSON output.
67+ const jsdomSummary = JSON . parse ( await readFile ( coverageJsonPath ) ) ;
68+ console . log ( { out : JSON . stringify ( { jsdomSummary } ) } ) ;
69+ const jsdomSummaryKeys = Object . keys ( jsdomSummary ) ;
70+ for ( const file of generatedFiles ) {
71+ const found = jsdomSummaryKeys . some ( ( key ) => key . endsWith ( file ) ) ;
72+ assert . ok ( found , `Expected ${ file } to be in the JSDOM coverage report.` ) ;
7673 }
7774
7875 // Setup for browser mode
0 commit comments