diff --git a/rush-plugins/rush-dep-graph-plugin/src/main.ts b/rush-plugins/rush-dep-graph-plugin/src/main.ts index bcf1fba..73c5122 100644 --- a/rush-plugins/rush-dep-graph-plugin/src/main.ts +++ b/rush-plugins/rush-dep-graph-plugin/src/main.ts @@ -46,7 +46,7 @@ export class ListGraph { } if (this._visited.has(projectName)) { - data.label = data.label + chalk.yellow(' (circular)'); + data.label = data.label + ' (circular)'; return; } diff --git a/rush-plugins/rush-dep-graph-plugin/src/tests/DependencyGraph.test.ts b/rush-plugins/rush-dep-graph-plugin/src/tests/DependencyGraph.test.ts index 506be84..a468bbc 100644 --- a/rush-plugins/rush-dep-graph-plugin/src/tests/DependencyGraph.test.ts +++ b/rush-plugins/rush-dep-graph-plugin/src/tests/DependencyGraph.test.ts @@ -67,6 +67,14 @@ describe('ListGraph traversal and output snapshots', () => { it('should produce the correct dependency tree in the presence of circular dependencies', async () => { const graph = new ListGraph(Selector.To, 'a'); const output = await graph.runAsync(); - expect(output).toMatchSnapshot(); + expect(output).toMatchInlineSnapshot(` +"a +└─┬ b + ├── c + └─┬ d + └─┬ e + └── b (circular) +" +`); }); }); diff --git a/rush-plugins/rush-dep-graph-plugin/src/tests/__snapshots__/DependencyGraph.test.ts.snap b/rush-plugins/rush-dep-graph-plugin/src/tests/__snapshots__/DependencyGraph.test.ts.snap deleted file mode 100644 index 5c8e2fd..0000000 --- a/rush-plugins/rush-dep-graph-plugin/src/tests/__snapshots__/DependencyGraph.test.ts.snap +++ /dev/null @@ -1,11 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`ListGraph traversal and output snapshots should produce the correct dependency tree in the presence of circular dependencies 1`] = ` -"a -└─┬ b - ├── c - └─┬ d - └─┬ e - └── b (circular) -" -`;