diff --git a/tests/support/end2end-server.js b/tests/support/end2end-server.js index d0b278d1c..b9c31e7b0 100644 --- a/tests/support/end2end-server.js +++ b/tests/support/end2end-server.js @@ -1,7 +1,5 @@ -import { createInterface, on } from "readline"; - import run from "./lib/task.js"; - +import readline from "readline"; function logTask(taskname) { return (data) => { process.stdout.write(`${taskname}: ${data}`); @@ -32,12 +30,12 @@ function shutdown() { } if (process.platform === "win32") { - createInterface({ + readline.createInterface({ input: process.stdin, output: process.stdout, }); - on("SIGINT", shutdown); + readline.on("SIGINT", shutdown); } process.on("uncaughtException", shutdown);