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
Fix local-emulator e2e test and address review feedback
- The positive happy-path test minted a project owned by the test user's
team, but the CLI signs in as the local-emulator admin whose
listOwnedProjects() only returns LOCAL_EMULATOR_OWNER_TEAM_ID-owned
projects. Mint the project via /internal/local-emulator/project so it
shows up under the admin's team.
- Surface stderr when the positive test exits non-zero so future
regressions report the real CLI error instead of a bare exit-code mismatch.
- Add expect(createdProjectId).toBeDefined() guards to the two negative
emulator tests for parity with the positive test.
- Use performance.now() instead of Date.now() for the local-emulator
sign-in retry deadline so wall-clock skew can't break the loop.
thrownewAuthError(`Cannot reach local emulator at ${apiUrl} (after ${totalTimeoutMs}ms): ${message}. Start it with \`stack emulator start\`, or pass --cloud to use the cloud API.`);
0 commit comments