(path: string)
| 57 | }; |
| 58 | |
| 59 | export const processFile = (path: string) => { |
| 60 | if (realTime) { |
| 61 | if (isInfoFile(path)) { |
| 62 | parseInfoFile(path).then(async () => await updateBuildFiles()); |
| 63 | } else if (isRouteFile(path)) { |
| 64 | checkRouteFile(path).then(async () => await updateBuildFiles()); |
| 65 | } |
| 66 | } else { |
| 67 | if (isInfoFile(path)) { |
| 68 | fileMap[path] = false; |
| 69 | parseInfoFile(path).then(() => { |
| 70 | fileMap[path] = true; |
| 71 | checkForFinishedProcessing(); |
| 72 | }); |
| 73 | } else if (isRouteFile(path)) { |
| 74 | fileMap[path] = false; |
| 75 | checkRouteFile(path).then(() => { |
| 76 | fileMap[path] = true; |
| 77 | checkForFinishedProcessing(); |
| 78 | }); |
| 79 | } |
| 80 | } |
| 81 | }; |
| 82 | |
| 83 | export const finishedProcessing = () => { |
| 84 | allFilesProcessed = true; |
no test coverage detected