We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29ed74f commit cceb0bdCopy full SHA for cceb0bd
packages/jest-dev-server/src/global.js
@@ -90,15 +90,11 @@ async function outOfStin(block) {
90
export async function setup(config) {
91
config = { ...DEFAULT_CONFIG, ...config }
92
93
- if (config.port) {
+ if (config.port && config.usedPortAction !== 'ignore') {
94
const [portProcess] = await findProcess('port', config.port)
95
96
if (portProcess && portProcess.pid > 0) {
97
switch (config.usedPortAction) {
98
- case 'ignore':
99
- console.log('')
100
- logProcDetection(portProcess, config.port)
101
- return
102
case 'error':
103
throw new JestDevServerError(
104
`Port ${config.port} is already used by ${
0 commit comments