* Checks if a directory contains a component .ts file matching the directory name.
(dirPath: string, dirName: string)
| 92 | * Checks if a directory contains a component .ts file matching the directory name. |
| 93 | */ |
| 94 | function hasComponentFile(dirPath: string, dirName: string): boolean { |
| 95 | const componentFile = path.join(dirPath, `${dirName}.component.ts`); |
| 96 | return fs.existsSync(componentFile); |
| 97 | } |
| 98 | |
| 99 | /** |
| 100 | * Finds the story file for a component directory. |
no outgoing calls
no test coverage detected