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(tests): unbreak npm test on Windows + close 20-day CI gap
Eight tests have been failing on Windows since (a) 2026-03-17 dfedc25 (3 stale fixtures cross-platform) and (b) forever (5 POSIX assumptions). CI never noticed because its bash glob 'src/**/*.test.ts' silently skips top-level src files when globstar is off (the default). Fixes:
1. src/keystore.test.ts: drop 'tier' and 'lease_expires_at' from test fixtures (loadKeyStore strips them since dfedc25). 3 tests fixed cross-platform.
2. src/keystore.test.ts + core/src/keystore.test.ts + core/src/allowance.test.ts: skip 'creates file with 0600 permissions' on Windows with explicit reason. Windows NTFS doesn't enforce POSIX file modes.
3. core/src/config.test.ts: use path.join() in expected values for path-derivation tests so backslash paths on Windows match.
4. .github/workflows/test.yml: enable bash globstar and add core/src/**/*.test.ts to the CI test command. Without this, root-level src test files (keystore, client, errors, paid-fetch) were silently skipped by CI.
Result: npm test on Windows is now 262/262 + 56/56 = 318 pass, 3 skip (POSIX file mode), 0 fail. Linux CI will now actually execute the previously-skipped 4 src/*.test.ts files plus all core/src/*.test.ts files.
0 commit comments