MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / closestProjectFolder

Method closestProjectFolder

src/extension/commands/test.ts:66–68  ·  view source on GitHub ↗
(suitePath: string)

Source from the content-addressed store, hash-verified

64 sortBy(projectFolders, (f) => -1 * f.length);
65
66 function closestProjectFolder(suitePath: string) {
67 return projectFolders.find((f) => isWithinPath(suitePath, f));
68 }
69
70 const projectsWithTests: Array<{ projectFolder: string, name: string, relativeTestPaths: string[] }> = [];
71 function addTestItemsForProject(projectFolder: string, integrationTests: boolean) {

Callers

nothing calls this directly

Calls 1

isWithinPathFunction · 0.90

Tested by

no test coverage detected