Skip to content

Commit

Permalink
test: test affected projects
Browse files Browse the repository at this point in the history
  • Loading branch information
khalilou88 committed Sep 30, 2023
1 parent 506befc commit 42f371e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ describe('@jnxplus/nx-gradle spring-boot smoke', () => {

execSync(`git commit -am "chore: scaffold projects"`, execSyncOptions());

const affected = execSync('nx show projects --affected', execSyncOptions());
const affected = execSync(
'npx nx show projects --affected',
execSyncOptions(),
);
expect(affected).not.toContain(testApp);
expect(affected).not.toContain(testApp2);
expect(affected).not.toContain(testApp3);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ describe('@jnxplus/nx-maven spring-boot smoke', () => {

execSync(`git commit -am "chore: scaffold projects"`, execSyncOptions());

const affected = execSync('nx show projects --affected', execSyncOptions());
const affected = execSync(
'npx nx show projects --affected',
execSyncOptions(),
);
expect(affected).not.toContain(testApp);
expect(affected).not.toContain(testApp2);
expect(affected).not.toContain(testApp3);
Expand Down

0 comments on commit 42f371e

Please sign in to comment.