Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: update smoke tests #1339

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
);

Expand All @@ -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(),
);

Expand All @@ -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(),
);

Expand All @@ -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);
});