File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import assert from 'node:assert/strict' ;
22import * as fs from 'node:fs' ;
33import * as path from 'node:path' ;
4- import { execAndCaptureError , silentExec } from '../../utils/process' ;
4+ import { ng , silentExec } from '../../utils/process' ;
55import { applyVitestBuilder } from '../../utils/vitest' ;
66import { stripVTControlCharacters } from 'node:util' ;
77
@@ -34,11 +34,8 @@ export default async function (): Promise<void> {
3434 assert ( fs . existsSync ( 'angular.json' ) , 'angular.json should exist on the subst drive' ) ;
3535
3636 // 3. Run `ng test`.
37- // We expect this to fail with NG0203 in the subst environment due to dual-package hazards
38- // (Angular loading from both X: and D:) within bazel. However, the failure proves that the
39- // test file was discovered and loaded.
40- const error = await execAndCaptureError ( 'ng' , [ 'test' , '--watch=false' ] ) ;
41- const output = stripVTControlCharacters ( error . message ) ;
37+ const { stdout } = await ng ( 'test' , '--watch=false' ) ;
38+ const output = stripVTControlCharacters ( stdout ) ;
4239
4340 // 4. Verify that Vitest found the test file and identified the tests within it.
4441 assert . match (
You can’t perform that action at this time.
0 commit comments