Skip to content

Commit

Permalink
cleanup(core): add e2e tests for new implicit dependencies definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder committed Nov 14, 2022
1 parent fe23175 commit 8499aee
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions e2e/nx-run/src/affected-graph.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,21 @@ describe('Nx Affected and Graph Tests', () => {
expect(runCLI('affected:apps')).toContain(myapp2);
expect(runCLI('affected:libs')).not.toContain(mylib);
});

it('should detect changes to implicitly dependant projects', () => {
generateAll();
updateProjectConfig(myapp, (config) => ({
...config,
implicitDependencies: ['*', `!${myapp2}`],
}));

const affectedApps = runCLI('affected:apps');
const affectedLibs = runCLI('affected:libs');

expect(affectedApps).toContain(myapp);
expect(affectedApps).not.toContain(myapp2);
expect(affectedLibs).toContain(mylib);
});
});

describe('print-affected', () => {
Expand Down

0 comments on commit 8499aee

Please sign in to comment.