test(commands): streamline onboarding tests

This commit is contained in:
Peter Steinberger
2026-01-23 06:21:40 +00:00
parent c7ca312f97
commit 451792d326
2 changed files with 79 additions and 165 deletions

View File

@@ -30,6 +30,8 @@ describe("openUrl", () => {
vi.stubEnv("VITEST", "");
vi.stubEnv("NODE_ENV", "");
const platformSpy = vi.spyOn(process, "platform", "get").mockReturnValue("win32");
vi.stubEnv("VITEST", "");
vi.stubEnv("NODE_ENV", "development");
const url =
"https://accounts.google.com/o/oauth2/v2/auth?client_id=abc&response_type=code&redirect_uri=http%3A%2F%2Flocalhost";