You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
? `Port ${port} is already in use (\`--strictPort\` is enabled).`
260
+
: `Port ${port} is already in use.`,
261
+
{cause: error},
262
+
)
263
+
case'EACCES':
264
+
returnnewError(`Port ${port} requires elevated privileges. Pass \`--port\` with a port above 1023.`,{cause: error})
265
+
case'EADDRNOTAVAIL':
266
+
returnnewError(`\`${hostname}\` is not an address of this machine. Pass \`--host\` with a local address, or omit it to listen on localhost.`,{cause: error})
awaitexpect(start({port: first.address.port,strictPort: true})).rejects.toThrow(`Port ${first.address.port} is already in use (\`--strictPort\` is enabled).`)
122
+
})
123
+
124
+
it('should explain an unavailable host',async()=>{
0 commit comments