()
| 123 | } |
| 124 | |
| 125 | function stopRunningTests() { |
| 126 | if (isRunning()) { |
| 127 | runningThreads.forEach(thread => thread.kill()); |
| 128 | runningThreads = []; |
| 129 | } |
| 130 | |
| 131 | if (pendingTests) { |
| 132 | pendingTests.forEach(testOpt => { |
| 133 | if (testOpt.status === 'pending') { |
| 134 | testOpt.status = 'unsettled'; |
| 135 | } |
| 136 | }); |
| 137 | saveTestsList(); |
| 138 | pendingTests = null; |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | class Thread { |
| 143 | constructor() { |
no test coverage detected
searching dependent graphs…