Skip to content

Commit

Permalink
chore(repo): fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
vsavkin committed Jul 4, 2022
1 parent 71f8b05 commit b2203d8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions packages/nx/src/project-graph/nx-deps-cache.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,18 @@ describe('nx deps utils', () => {
)
).toEqual(true);
});

it('should be true when plugin config changes', () => {
expect(
shouldRecomputeWholeGraph(
createCache({}),
createPackageJsonDeps({ plugin: '2.0.0' }),
createWorkspaceJson({}),
createNxJson({ pluginsConfig: { one: 1 } }),
createTsConfigJson()
)
).toEqual(true);
});
});

describe('extractCachedPartOfProjectGraph', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/nx/src/project-graph/nx-deps-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface ProjectGraphCache {
deps: Record<string, string>;
pathMappings: Record<string, any>;
nxJsonPlugins: { name: string; version: string }[];
pluginsConfig: any;
pluginsConfig?: any;
nodes: Record<string, ProjectGraphNode>;
externalNodes?: Record<string, ProjectGraphExternalNode>;

Expand Down

0 comments on commit b2203d8

Please sign in to comment.