(folder: string, config: WorkspaceConfig)
| 123 | } |
| 124 | |
| 125 | export 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 | |
| 135 | export function isDartFile(file: string): boolean { |
| 136 | return !!file && path.extname(file).toLowerCase() === ".dart" && existsAndIsFileSync(file); |
no test coverage detected