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 76980e2 commit 1614dbbCopy full SHA for 1614dbb
dev-packages/test-utils/src/spotlight.ts
@@ -175,10 +175,11 @@ export async function startSpotlight(options: SpotlightOptions = {}): Promise<Sp
175
// When Spotlight says it's listening, start waiting for the app
176
if (!resolved && resolvedPort && line.includes('listening')) {
177
resolved = true;
178
+ const spotlightPort = resolvedPort; // Capture for closure
179
// Wait for app to be ready before resolving
180
waitForAppReady()
181
.then(() => {
- const instance = createSpotlightInstance(spotlightProcess, resolvedPort, debug);
182
+ const instance = createSpotlightInstance(spotlightProcess, spotlightPort, debug);
183
currentSpotlightInstance = instance;
184
resolve(instance);
185
})
0 commit comments