mirror of
https://github.com/iflytek/skillhub.git
synced 2026-09-07 08:26:00 +00:00
Bun.which('bun') on Windows CI returns a non-existent path
(C:\Users\runneradmin\.bun\bin\bun.exe), causing all integration
tests to fail. Add existsSync() check to fallback to process.execPath
when the resolved path doesn't exist.
Also fix version-command.test.ts to use process.execPath instead of
hardcoded 'bun' string for cross-platform compatibility.
Fixes 19 failing integration tests on Windows platform.
|
||
|---|---|---|
| .. | ||
| auth-commands.test.ts | ||
| error-output.test.ts | ||
| help-command.test.ts | ||
| search-command.test.ts | ||
| update-command.test.ts | ||
| version-command.test.ts | ||