(path?: string)
| 113 | } |
| 114 | |
| 115 | export function isDemoFilePath(path?: string): boolean { |
| 116 | if (!path) return false |
| 117 | const normalized = path.replace(/\\/g, '/') |
| 118 | |
| 119 | if ( |
| 120 | normalized.includes('/routes/demo/') || |
| 121 | normalized.includes('/routes/example/') |
| 122 | ) { |
| 123 | return true |
| 124 | } |
| 125 | |
| 126 | const filename = normalized.split('/').pop() || '' |
| 127 | return ( |
| 128 | filename.startsWith('demo.') || |
| 129 | filename.startsWith('demo-') || |
| 130 | filename.startsWith('example.') || |
| 131 | filename.startsWith('example-') |
| 132 | ) |
| 133 | } |
| 134 | |
| 135 | export function findFilesRecursively( |
| 136 | path: string, |
no test coverage detected