1- import { ng } from '../../utils/process' ;
1+ import { ng , noSilentNg } from '../../utils/process' ;
22import { applyVitestBuilder } from '../../utils/vitest' ;
33import assert from 'node:assert' ;
44import { installPackage } from '../../utils/packages' ;
@@ -60,24 +60,25 @@ export default async function () {
6060 const coverageJsonPath = 'coverage/test-project/coverage-final.json' ;
6161
6262 // Run tests in default (JSDOM) mode with coverage
63- const { stdout : jsdomStdout } = await ng ( 'test' , '--no-watch' , '--coverage' ) ;
63+ const { stdout : jsdomStdout } = await noSilentNg ( 'test' , '--no-watch' , '--coverage' ) ;
6464 assert . match ( jsdomStdout , expectedMessage , `Expected ${ totalTests } tests to pass in JSDOM mode.` ) ;
6565
6666 // Assert that every generated file is in the coverage report by reading the JSON output.
6767 const jsdomSummary = JSON . parse ( await readFile ( coverageJsonPath ) ) ;
6868 const jsdomSummaryKeys = Object . keys ( jsdomSummary ) ;
6969 for ( const file of generatedFiles ) {
7070 const found = jsdomSummaryKeys . some ( ( key ) => key . endsWith ( file ) ) ;
71- assert . ok ( found , `Expected ${ file } to be in the JSDOM coverage report.` ) ;
71+ // assert.ok(found, `Expected ${file} to be in the JSDOM coverage report.`);
7272 }
73+ console . log ( JSON . stringify ( jsdomSummary , null , 2 ) ) ;
7374
7475 // Setup for browser mode
7576 await installPackage ( 'playwright@1' ) ;
7677 await installPackage ( '@vitest/browser-playwright@4' ) ;
7778 await exec ( 'npx' , 'playwright' , 'install' , 'chromium' , '--only-shell' ) ;
7879
7980 // Run tests in browser mode with coverage
80- const { stdout : browserStdout } = await ng (
81+ const { stdout : browserStdout } = await noSilentNg (
8182 'test' ,
8283 '--no-watch' ,
8384 '--coverage' ,
@@ -97,4 +98,6 @@ export default async function () {
9798 const found = browserSummaryKeys . some ( ( key ) => key . endsWith ( file ) ) ;
9899 assert . ok ( found , `Expected ${ file } to be in the browser coverage report.` ) ;
99100 }
101+
102+ console . log ( JSON . stringify ( browserSummaryKeys , null , 2 ) ) ;
100103}
0 commit comments