(task: Task)
| 34 | } |
| 35 | |
| 36 | export function isSlowTestTask(task: Task) { |
| 37 | if (task.type !== 'test') { |
| 38 | return false |
| 39 | } |
| 40 | |
| 41 | const duration = task.result?.duration |
| 42 | if (typeof duration !== 'number') { |
| 43 | return false |
| 44 | } |
| 45 | |
| 46 | const threshold = config.value.slowTestThreshold |
| 47 | return typeof threshold === 'number' && duration > threshold |
| 48 | } |
| 49 | |
| 50 | export function getSortedRootTasks(sort: SortUIType, tasks = explorerTree.root.tasks) { |
| 51 | const sorted = [...tasks] |
no outgoing calls
no test coverage detected