From 1e200ad38fa97c1ec5ea1bfbed77c084ad5e1dd5 Mon Sep 17 00:00:00 2001 From: Khalil LAGRIDA <32600911+khalilou88@users.noreply.github.com> Date: Fri, 11 Oct 2024 16:47:40 +0200 Subject: [PATCH] test: update smoke tests (#1339) --- .../tests/nx-maven/spring-boot-bom.spec.ts | 24 ++++++++++++++----- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/testing-projects/jnxplus-smoke/tests/nx-maven/spring-boot-bom.spec.ts b/testing-projects/jnxplus-smoke/tests/nx-maven/spring-boot-bom.spec.ts index be7c9d7b0..01cb01432 100644 --- a/testing-projects/jnxplus-smoke/tests/nx-maven/spring-boot-bom.spec.ts +++ b/testing-projects/jnxplus-smoke/tests/nx-maven/spring-boot-bom.spec.ts @@ -76,7 +76,7 @@ describe('nx-maven spring-boot bom smoke', () => { ); execSync( - `npx nx g @jnxplus/nx-maven:application ${testApp} --parentProject ${appsParentProject}`, + `npx nx g @jnxplus/nx-maven:application ${testApp} --aggregatorProject ${appsParentProject} --parentProject ${appsParentProject}`, execSyncOptions(), ); @@ -86,17 +86,17 @@ describe('nx-maven spring-boot bom smoke', () => { ); execSync( - `npx nx g @jnxplus/nx-maven:application ${testApp2} --parentProject ${appsParentProject} --packaging war`, + `npx nx g @jnxplus/nx-maven:application ${testApp2} --aggregatorProject ${appsParentProject} --parentProject ${appsParentProject} --packaging war`, execSyncOptions(), ); execSync( - `npx nx g @jnxplus/nx-maven:application ${testApp3} --parentProject ${appsParentProject}`, + `npx nx g @jnxplus/nx-maven:application ${testApp3} --aggregatorProject ${appsParentProject} --parentProject ${appsParentProject}`, execSyncOptions(), ); execSync( - `npx nx g @jnxplus/nx-maven:application ${testApp4} --parentProject ${appsParentProject}`, + `npx nx g @jnxplus/nx-maven:application ${testApp4} --aggregatorProject ${appsParentProject} --parentProject ${appsParentProject}`, execSyncOptions(), ); @@ -106,12 +106,12 @@ describe('nx-maven spring-boot bom smoke', () => { ); execSync( - `npx nx g @jnxplus/nx-maven:application ${testApp5} --parentProject ${appsParentProject} --framework spring-boot --language kotlin`, + `npx nx g @jnxplus/nx-maven:application ${testApp5} --aggregatorProject ${appsParentProject} --parentProject ${appsParentProject} --framework spring-boot --language kotlin`, execSyncOptions(), ); execSync( - `npx nx g @jnxplus/nx-maven:application ${testApp6} --parentProject ${appsParentProject} --framework spring-boot --language kotlin --packaging war`, + `npx nx g @jnxplus/nx-maven:application ${testApp6} --aggregatorProject ${appsParentProject} --parentProject ${appsParentProject} --framework spring-boot --language kotlin --packaging war`, execSyncOptions(), ); @@ -138,6 +138,18 @@ describe('nx-maven spring-boot bom smoke', () => { target: testLib, }); + expect(depGraphJson.graph.dependencies[testApp5]).toContainEqual({ + type: 'static', + source: testApp5, + target: testLib5, + }); + + expect(depGraphJson.graph.dependencies[testApp6]).toContainEqual({ + type: 'static', + source: testApp6, + target: testLib5, + }); + execSync(`git commit -am "chore: scaffold projects"`, execSyncOptions()); }, 1500000); });