Skip to content

Commit 351720a

Browse files
tmilargregberge
authored andcommitted
fix(jest-dev-server): properly detect if port is used, using both config.port and config.host options.
Fixes #555.
1 parent 37e2294 commit 351720a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/jest-dev-server/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ const checkIsPortBusy = async (config: Config): Promise<boolean> => {
165165
.once("listening", () => {
166166
server.once("close", () => resolve(false)).close();
167167
})
168-
.listen(config.port);
168+
.listen(config.port, config.host);
169169
});
170170
};
171171

0 commit comments

Comments
 (0)