File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
packages/angular_devkit/build_angular/src/builders/karma
tests/legacy-cli/e2e/tests/test Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -118,14 +118,8 @@ export function execute(
118118 }
119119
120120 const projectMetadata = await context . getProjectMetadata ( projectName ) ;
121- const projectRoot = path . join (
122- context . workspaceRoot ,
123- ( projectMetadata . root as string | undefined ) ?? '' ,
124- ) ;
125- const projectSourceRoot = path . join (
126- projectRoot ,
127- ( projectMetadata . sourceRoot as string | undefined ) ?? '' ,
128- ) ;
121+ const sourceRoot = ( projectMetadata . sourceRoot ?? projectMetadata . root ?? '' ) as string ;
122+ const projectSourceRoot = path . join ( context . workspaceRoot , sourceRoot ) ;
129123
130124 const files = await findTests ( options . include , context . workspaceRoot , projectSourceRoot ) ;
131125 // early exit, no reason to start karma
Original file line number Diff line number Diff line change 1+ import { ng } from '../../utils/process' ;
2+
3+ export default async function ( ) {
4+ await ng ( 'test' , '--no-watch' , `--include='**/*.spec.ts'` ) ;
5+ }
You can’t perform that action at this time.
0 commit comments