@dan_abramov Ah, right, these tests run in
isolated instances.
I have that solved in another project where I randomly generate unprivileged
ports: 1024 + Math.round(Math.random() * (65535 - 1024))
A static archive of Markus Tacker's tweets. Follow me on Mastodon: @[email protected].
@dan_abramov Ah, right, these tests run in
isolated instances.
I have that solved in another project where I randomly generate unprivileged
ports: 1024 + Math.round(Math.random() * (65535 - 1024))
@dan_abramov Here is a more advanced version
where I generate stable unprivileged port number for server instances based on
string identifiers that need to run on the same machine:
https://github.com/bifravst/device-ui-server/blob/0c423026477f902067f4859a21c1f8327f869dce/src/portForDevice.ts#L4