@@ -24,10 +24,13 @@ import { ensureDirSync } from 'fs-extra';
2424const e2eDir = 'tmp/nx-e2e/proj' ;
2525
2626describe ( 'nx-dotnet e2e' , ( ) => {
27+ beforeAll ( ( ) => {
28+ ensureNxProject ( '@nx-dotnet/core' , 'dist/packages/core' ) ;
29+ } , 1500000 ) ;
30+
2731 it ( 'should create apps, libs, and project references' , async ( ) => {
2832 const testApp = uniq ( 'app' ) ;
2933 const testLib = uniq ( 'lib' ) ;
30- ensureNxProject ( '@nx-dotnet/core' , 'dist/packages/core' ) ;
3134
3235 await runNxCommandAsync (
3336 `generate @nx-dotnet/core:app ${ testApp } --language="C#" --template="webapi"` ,
@@ -47,7 +50,6 @@ describe('nx-dotnet e2e', () => {
4750 it ( 'should work with affected' , async ( ) => {
4851 const testApp = uniq ( 'app' ) ;
4952 const testLib = uniq ( 'lib' ) ;
50- ensureNxProject ( '@nx-dotnet/core' , 'dist/packages/core' ) ;
5153
5254 await runNxCommandAsync (
5355 `generate @nx-dotnet/core:app ${ testApp } --language="C#" --template="webapi"` ,
@@ -209,7 +211,6 @@ describe('nx-dotnet e2e', () => {
209211 const testApp = uniq ( 'app' ) ;
210212 const testLib = uniq ( 'lib' ) ;
211213 const testAppTest = `${ testApp } -test` ;
212- ensureNxProject ( '@nx-dotnet/core' , 'dist/packages/core' ) ;
213214 const appDir = `${ e2eDir } /apps/${ testApp } ` ;
214215 const testAppDir = `${ e2eDir } /apps/${ testAppTest } ` ;
215216 const libDir = `${ e2eDir } /libs/${ testLib } ` ;
0 commit comments