ECC/tests/lib
Chris Yau b61f549444
fix(tests): resolve Windows CI test failures (#701)
* fix(tests): skip bash tests on Windows and fix USERPROFILE in resolve-ecc-root

- hooks.test.js: add SKIP_BASH guard for 8 bash-dependent tests
  (detect-project.sh, observe.sh) while keeping 207 Node.js tests running
- resolve-ecc-root.test.js: add USERPROFILE to env overrides in 2
  INLINE_RESOLVE tests so os.homedir() resolves correctly on Windows

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>

* fix(tests): handle BOM in shebang stripping and skip worktree tests on Windows

- validators.test.js: replace regex stripShebang with character-code
  approach that handles UTF-8 BOM before shebang line
- detect-project-worktree.test.js: skip entire file on Windows since
  tests invoke bash scripts directly

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Happy <yesreply@happy.engineering>
2026-03-20 03:37:21 -07:00
..
agent-compress.test.js feat: agent compression, inspection logic, governance hooks (#491, #485, #482) (#688) 2026-03-20 01:38:13 -07:00
inspection.test.js feat: agent compression, inspection logic, governance hooks (#491, #485, #482) (#688) 2026-03-20 01:38:13 -07:00
install-config.test.js feat: orchestration harness, selective install, observer improvements 2026-03-14 12:55:25 -07:00
install-lifecycle.test.js feat: strengthen install lifecycle and target adapters (#512) 2026-03-15 21:47:31 -07:00
install-manifests.test.js feat: wire manifest resolution into install execution (#509) 2026-03-15 21:47:22 -07:00
install-request.test.js feat: wire manifest resolution into install execution (#509) 2026-03-15 21:47:22 -07:00
install-state.test.js feat: strengthen install lifecycle and target adapters (#512) 2026-03-15 21:47:31 -07:00
install-targets.test.js Add PowerShell installer wrapper and update documentation (#532) 2026-03-16 13:35:17 -07:00
orchestration-session.test.js feat: orchestration harness, selective install, observer improvements 2026-03-14 12:55:25 -07:00
package-manager.test.js Fix copilot-setup-steps.yml and address PR review comments 2026-02-18 07:22:05 +00:00
project-detect.test.js feat: automatic project type and framework detection (#293) 2026-03-02 22:07:10 -08:00
resolve-ecc-root.test.js fix(tests): resolve Windows CI test failures (#701) 2026-03-20 03:37:21 -07:00
resolve-formatter.test.js perf(hooks): use direct require() instead of spawning child process 2026-03-11 10:45:27 +09:00
selective-install.test.js fix: resolve ESLint errors and add npx command support in hook tests 2026-03-20 02:11:12 -07:00
session-adapters.test.js Add PowerShell installer wrapper and update documentation (#532) 2026-03-16 13:35:17 -07:00
session-aliases.test.js Fix copilot-setup-steps.yml and address PR review comments 2026-02-18 07:22:05 +00:00
session-manager.test.js fix: accept shorter mixed-case session IDs (#408) 2026-03-12 23:29:50 -07:00
shell-split.test.js fix(hooks): allow tmux-wrapped dev server commands (#321) 2026-03-07 14:47:49 -08:00
skill-dashboard.test.js fix: update catalog counts and resolve lint error 2026-03-19 22:47:46 -07:00
skill-evolution.test.js feat: add skill evolution foundation (#514) 2026-03-15 21:47:39 -07:00
skill-improvement.test.js feat: self-improving skills loop — observe, inspect, amend, evaluate 2026-03-14 23:21:18 -07:00
state-store.test.js feat: add SQLite state store and query CLI (#510) 2026-03-16 01:32:21 -07:00
tmux-worktree-orchestrator.test.js fix: refresh orchestration follow-up after #414 (#430) 2026-03-16 14:29:28 -07:00
utils.test.js fix: strip ANSI escape codes from session persistence hooks (#642) (#684) 2026-03-20 01:38:11 -07:00