Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: port collisions in createTestContext (prisma-labs#1326)
- during testing, get-port often re-uses the same port, due to the delay between when a free-port is assigned to a test, and when the port is actually used. Simply supplying an initial random port value to get-port dramatically reduces the chance of a port being used multiple times in a test run. - testing on CI environments should still utilize Jest’s `—runInBand` flag
- Loading branch information