* Stops the currently running server * @return {Promise }
()
| 168 | * @return {Promise<void>} |
| 169 | */ |
| 170 | async function stopServer() { |
| 171 | if (url) { |
| 172 | connect.serverClose(); |
| 173 | log(green('Stopped server at'), cyan(url)); |
| 174 | url = null; |
| 175 | } |
| 176 | } |
| 177 | |
| 178 | /** |
| 179 | * Closes the existing server and restarts it |
no test coverage detected