(useFiles: RunnerTestFile[])
| 107 | } |
| 108 | |
| 109 | function clearResults(useFiles: RunnerTestFile[]) { |
| 110 | const map = explorerTree.nodes |
| 111 | useFiles.forEach((f) => { |
| 112 | delete f.result |
| 113 | getTasks(f).forEach((i) => { |
| 114 | delete i.result |
| 115 | if (map.has(i.id)) { |
| 116 | const task = map.get(i.id) |
| 117 | if (task) { |
| 118 | task.state = undefined |
| 119 | task.mode = 'run' |
| 120 | task.duration = undefined |
| 121 | } |
| 122 | } |
| 123 | }) |
| 124 | const file = map.get(f.id) |
| 125 | if (file) { |
| 126 | file.state = undefined |
| 127 | file.mode = 'run' |
| 128 | file.duration = undefined |
| 129 | if (isFileNode(file)) { |
| 130 | file.collectDuration = undefined |
| 131 | } |
| 132 | } |
| 133 | }) |
| 134 | } |
| 135 | |
| 136 | export function runFiles(useFiles: RunnerTestFile[]) { |
| 137 | clearResults(useFiles) |
no test coverage detected