hunk.code_window:   return object;
   }
   async function readJson(file: string): Promise<any> {
     return JSON.parse((await fse.readFile(file)).toString());
   }
   async function writeJson(file: string, contents: any): Promise<void> {
     await fse.writeFile(file, JSON.stringify(contents, null, 2));
   }
hunk.labels: keep keep keep replace replace replace replace replace replace replace replace
hunk.file_path: packages/remix/magic.ts
hunk.type: replace
file: function stopServer(serverProc) {
    return new Promise(accept => {
      serverProc.on("close", () => {
        accept();
      });
  
      serverProc.kill("SIGTERM");
    });
  }
  
  module.exports = async () => {
    await stopServer(global.testServerProc);
  };
  