Skip to content

Commit cceb0bd

Browse files
committed
fix(jest-dev-server): do not scan process if usedPortAction is "ignore"
Closes #96
1 parent 29ed74f commit cceb0bd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/jest-dev-server/src/global.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,11 @@ async function outOfStin(block) {
9090
export async function setup(config) {
9191
config = { ...DEFAULT_CONFIG, ...config }
9292

93-
if (config.port) {
93+
if (config.port && config.usedPortAction !== 'ignore') {
9494
const [portProcess] = await findProcess('port', config.port)
9595

9696
if (portProcess && portProcess.pid > 0) {
9797
switch (config.usedPortAction) {
98-
case 'ignore':
99-
console.log('')
100-
logProcDetection(portProcess, config.port)
101-
return
10298
case 'error':
10399
throw new JestDevServerError(
104100
`Port ${config.port} is already used by ${

0 commit comments

Comments
 (0)