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

Function projectCanUsePackageTest

src/extension/utils.ts:125–133  ·  view source on GitHub ↗
(folder: string, config: WorkspaceConfig)

Source from the content-addressed store, hash-verified

123}
124
125export function projectCanUsePackageTest(folder: string, config: WorkspaceConfig): boolean {
126 // Handle explicit flags.
127 if (config.supportsPackageTest === true)
128 return true;
129 else if (config.supportsPackageTest === false)
130 return false;
131
132 return hasPubspec(folder);
133}
134
135export function isDartFile(file: string): boolean {
136 return !!file && path.extname(file).toLowerCase() === ".dart" && existsAndIsFileSync(file);

Callers 1

selectDebuggerTypeMethod · 0.90

Calls 1

hasPubspecFunction · 0.90

Tested by

no test coverage detected