Skip to content

Commit

Permalink
try to fix the ci issue
Browse files Browse the repository at this point in the history
  • Loading branch information
L-Qun committed Dec 17, 2024
1 parent 0258c28 commit 40eabc1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion rush-plugins/rush-dep-graph-plugin/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
"
`);
});
});

This file was deleted.

0 comments on commit 40eabc1

Please sign in to comment.