(path: string | undefined)
| 115 | } |
| 116 | |
| 117 | export function isTestFolder(path: string | undefined): boolean { |
| 118 | return !!path |
| 119 | && ( |
| 120 | isInsideFolderNamed(path, "test") |
| 121 | || isInsideFolderNamed(path, "integration_test") |
| 122 | ) && existsAndIsDirectorySync(path); |
| 123 | } |
| 124 | |
| 125 | export function projectCanUsePackageTest(folder: string, config: WorkspaceConfig): boolean { |
| 126 | // Handle explicit flags. |
no test coverage detected