(runs: ExecutionRun[])
| 133 | }; |
| 134 | |
| 135 | const sortRuns = (runs: ExecutionRun[]): ExecutionRun[] => { |
| 136 | return [...runs].sort( |
| 137 | (a, b) => new Date(b.startTime).getTime() - new Date(a.startTime).getTime(), |
| 138 | ); |
| 139 | }; |
| 140 | |
| 141 | const upsertIntoRuns = (runs: ExecutionRun[], run: ExecutionRun) => { |
| 142 | const existingIndex = runs.findIndex((item) => item.id === run.id); |
no outgoing calls
no test coverage detected