(path: string)
| 137 | * than a test file sorted with production. |
| 138 | */ |
| 139 | export function looksLikeTest(path: string): boolean { |
| 140 | return ( |
| 141 | /(^|\/)(__tests__|__mocks__|__fixtures__|tests?|spec|fixtures)(\/|$)/.test(path) || |
| 142 | /\.(test|spec)\.[a-z0-9]+$/i.test(path) |
| 143 | ); |
| 144 | } |
| 145 | |
| 146 | /* --------------------------------------------------------------- outline -- */ |
| 147 |
no outgoing calls
no test coverage detected