()
| 404 | } |
| 405 | |
| 406 | const handleExit = () => { |
| 407 | const status = rs.value |
| 408 | status.stage = 0 |
| 409 | const watchScope = status.scope |
| 410 | status.scope = null |
| 411 | if (watchScope) { |
| 412 | watchScope.stop() |
| 413 | } |
| 414 | } |
| 415 | |
| 416 | expect(rs.value.stage).toBe(0) |
| 417 | expect(renderCount).toBe(1) |