()
| 191 | } |
| 192 | |
| 193 | stop(): void { |
| 194 | if (this.timerId) { |
| 195 | clearInterval(this.timerId) |
| 196 | this.timerId = undefined as never |
| 197 | } |
| 198 | if (this.totalItems > 0) { |
| 199 | this.processedItems = this.totalItems // Ensure final state is 100% |
| 200 | this.render() // Final render |
| 201 | process.stdout.write("\n") // Move to the next line |
| 202 | } |
| 203 | } |
| 204 | } |
| 205 | |
| 206 | export const trace = async (args: string[]): Promise<void> => { |
no test coverage detected