Skip to content

Commit

Permalink
fix(jest-dev-server): properly detect if port is used, using both con…
Browse files Browse the repository at this point in the history
…fig.port and config.host options.

  Fixes #555.
  • Loading branch information
tmilar authored and gregberge committed May 24, 2023
1 parent 37e2294 commit 351720a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-dev-server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ const checkIsPortBusy = async (config: Config): Promise<boolean> => {
.once("listening", () => {
server.once("close", () => resolve(false)).close();
})
.listen(config.port);
.listen(config.port, config.host);
});
};

Expand Down

0 comments on commit 351720a

Please sign in to comment.