()
| 105 | |
| 106 | // Graceful shutdown |
| 107 | const cleanup = () => { |
| 108 | clearInterval(timer); |
| 109 | watcher.close(); |
| 110 | console.log(chalk.gray("\n Watch mode stopped.")); |
| 111 | process.exit(0); |
| 112 | }; |
| 113 | |
| 114 | process.on("SIGINT", cleanup); |
| 115 | process.on("SIGTERM", cleanup); |
nothing calls this directly
no outgoing calls
no test coverage detected