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
Tests:
- types.test.mts: delete 10 tautological type-definition tests (TS checks
them at compile time; runtime assertions gave false confidence)
- spinner/logger/github/promise-queue: replace 8 expect(true).toBe(true)
with not.toThrow() or drop empty operation bodies
- suppress-warnings: assert kMaxEventTargetListeners symbol is defined
before checking its value (prevents silent pass on Node symbol rename)
- shadow: control npm_config_user_agent env var to make the empty-binPath
test deterministic; assert exact boolean result
- sea: replace wall-clock cache-speed budgets with cached-value stability
(cache is observable via repeated-call equality, not ms timing)
- http-request: replace elapsed>=200 / <2000ms assertions with attempt
count + onRetry call count (wall-clock is CI-flaky); 4 tests updated
- constants/packages: drop duplicate 'all getters callable' describe
(individual per-getter tests already cover this)
- packages/normalize: document why the test imports dist/ (bundler
interop for normalize-package-data CJS wrapping)
Docs:
- environment.md: isTest() now documents VITEST / JEST_WORKER_ID checks
- environment.md: getHome() documents built-in USERPROFILE fallback;
4 code examples dropped the redundant manual Windows fallback
- http-utilities.md: httpDownload returns all 6 HttpDownloadResult
fields (not just path + size); destPath is 'recommended absolute'
not 'must be absolute'
**Cross-platform note:** For Windows, use `process.env.USERPROFILE` if needed
116
+
**Environment Variables:**`HOME` (Unix/Linux/macOS), falling back to `USERPROFILE` (Windows). Callers do NOT need to handle the Windows fallback themselves — `getHome()` returns the correct value on all platforms.
0 commit comments