(path: string)
| 42 | return path.match(matcher); |
| 43 | }; |
| 44 | const isRouteFile = (path: string) => { |
| 45 | const config = getConfig(); |
| 46 | let matcher: RegExp; |
| 47 | switch (config.mode) { |
| 48 | case "qwikcity": |
| 49 | matcher = /index\.(js|jsx|ts|tsx)$/; |
| 50 | break; |
| 51 | |
| 52 | default: |
| 53 | matcher = /(page|route)\.(js|jsx|ts|tsx)$/; |
| 54 | break; |
| 55 | } |
| 56 | return path.match(matcher); |
| 57 | }; |
| 58 | |
| 59 | export const processFile = (path: string) => { |
| 60 | if (realTime) { |
no test coverage detected