Skip to content

Commit

Permalink
fix: filter same framework name in e2e (#722)
Browse files Browse the repository at this point in the history
Co-authored-by: Jikun <jikunchen@microsoft.com>
  • Loading branch information
cjk7989 and Jikun committed Jul 10, 2023
1 parent f1dd587 commit 72c777b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/core/frameworks/detect.ts
Expand Up @@ -388,6 +388,14 @@ export function printSupportedFrameworks(showList = false): void {
export function formatDetectedFolders(folders: DetectedFolder[], type: string): string {
return (
`Detected ${type} folders (${folders.length}):\n` +
`- ${folders.map((f) => `${f.rootPath} (${f.frameworks.map((fr) => fr.name).join(", ")})`).join("\n- ")}`
`- ${folders
.map(
(f) =>
`${f.rootPath} (${f.frameworks
.map((fr) => fr.name)
.filter((frname, index, array) => array.indexOf(frname) === index)
.join(", ")})`
)
.join("\n- ")}`
);
}

0 comments on commit 72c777b

Please sign in to comment.