Skip to content
This repository was archived by the owner on Nov 24, 2020. It is now read-only.

Commit 97a4603

Browse files
committed
Start API independently of the test environment
1 parent 33bc645 commit 97a4603

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/target/typescript_nodeserver.cr

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -434,13 +434,11 @@ export function start(port: number = 8000) {
434434
});
435435
}
436436
437-
if (!process.env.TEST) {
438-
server.listen(port, () => {
439-
const addr = server.address();
440-
const addrString = typeof addr === "string" ? addr : `${addr.address}:${addr.port}`;
441-
console.log(`Listening on ${addrString}`);
442-
});
443-
}
437+
server.listen(port, () => {
438+
const addr = server.address();
439+
const addrString = typeof addr === "string" ? addr : `${addr.address}:${addr.port}`;
440+
console.log(`Listening on ${addrString}`);
441+
});
444442
}
445443
446444
fn.ping = async (ctx: Context) => "pong";

0 commit comments

Comments
 (0)