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 bef677b commit 87cc68eCopy full SHA for 87cc68e
src/config/index.ts
@@ -117,7 +117,7 @@ export async function loadConfiguration<Config extends ConfigurationSchema>({
117
// configured to auto-select
118
const serverConfig = loaded.get().server;
119
if (serverConfig.port === 0) {
120
- const portPromise: Promise<number> = isTest() ? getEphemeralPort() : findPort(8001);
+ const portPromise: Promise<number> = (isTest() || process.env.TEST_RUNNER) ? getEphemeralPort() : findPort(8001);
121
const port = await portPromise;
122
const store = loaded.get();
123
store.server = store.server || {};
0 commit comments