skillhub/cli/test
dongmucat 704f2d2af4 fix(cli): verify Bun.which() path exists before using on Windows
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.
2026-04-29 16:08:53 +08:00
..
helpers fix(cli): verify Bun.which() path exists before using on Windows 2026-04-29 16:08:53 +08:00
integration fix(cli): verify Bun.which() path exists before using on Windows 2026-04-29 16:08:53 +08:00
unit fix(cli): resolve Windows CI test failures across three platform issues 2026-04-29 16:03:09 +08:00