Skip to content

Commit

Permalink
build: test target should build project dependencies first (#1364)
Browse files Browse the repository at this point in the history
* fix: test target should build project and its dependencies first

* build: work in progress
  • Loading branch information
khalilou88 authored Oct 20, 2024
1 parent 072f03c commit b3620bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/nx-maven/src/generators/application/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ async function applicationGenerator(
options: {
task: 'test',
},
dependsOn: [`${normalizedOptions.buildTargetName}`],
dependsOn: [`^${normalizedOptions.buildTargetName}`],
},
[normalizedOptions.integrationTestTargetName]: {},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/nx-maven/src/generators/library/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ async function libraryGenerator(
options: {
task: 'test',
},
dependsOn: [`${normalizedOptions.buildTargetName}`],
dependsOn: [`^${normalizedOptions.buildTargetName}`],
},
},
tags: normalizedOptions.parsedTags,
Expand Down

0 comments on commit b3620bc

Please sign in to comment.