@@ -4,10 +4,10 @@ import {
44 ensureNxProject ,
55 listFiles ,
66 readFile ,
7- readJson ,
87 runCommand ,
98 runNxCommand ,
109 runNxCommandAsync ,
10+ runPackageManagerInstall ,
1111 tmpProjPath ,
1212 uniq ,
1313 updateFile ,
@@ -53,7 +53,19 @@ describe('nx-dotnet e2e', () => {
5353 it ( 'should work with affected' , async ( ) => {
5454 const testApp = uniq ( 'app' ) ;
5555 const testLib = uniq ( 'lib' ) ;
56+
5657 runCommand ( 'git checkout -b "affected-tests"' ) ;
58+ updateFile ( 'package.json' , ( f ) => {
59+ const json = JSON . parse ( f ) ;
60+ json . dependencies [ '@nrwl/angular' ] = 'latest' ;
61+ return JSON . stringify ( json ) ;
62+ } ) ;
63+ runPackageManagerInstall ( ) ;
64+
65+ await runNxCommandAsync (
66+ `generate @nrwl/angular:app ng-app --style css --routing false --no-interactive` ,
67+ // { cwd: e2eDir, stdio: 'inherit' },
68+ ) ;
5769
5870 await runNxCommandAsync (
5971 `generate @nx-dotnet/core:app ${ testApp } --language="C#" --template="webapi"` ,
@@ -70,7 +82,7 @@ describe('nx-dotnet e2e', () => {
7082 const deps = await readDependenciesFromNxDepGraph ( join ( e2eDir ) , testApp ) ;
7183 expect ( deps ) . toContain ( testLib ) ;
7284 runCommand ( 'git checkout main' ) ;
73- } , 150000 ) ;
85+ } , 300000 ) ;
7486
7587 describe ( 'nx g app' , ( ) => {
7688 it ( 'should obey dry-run' , async ( ) => {
0 commit comments