2026-02-06 16:30:38 +08:00

7 lines
375 B
TypeScript

// Reset environment variables to GitHub defaults for testing.
// This ensures tests run consistently regardless of CI environment (GitHub/Gitea).
// Preloaded before test modules via bunfig.toml so config.ts picks up these values.
process.env.GITHUB_SERVER_URL = "https://github.com";
process.env.GITHUB_API_URL = "https://api.github.com";
delete process.env.USE_GITEA_API;