mirror of
https://github.com/rohitg00/skillkit.git
synced 2026-11-18 18:04:26 +00:00
* test: add comprehensive E2E test suite for CLI commands - Add 183 E2E tests covering all major CLI commands - Core commands: init, list, read, validate, enable, disable, sync - Translation: all 17 agents, context detection, recommendations - Team collaboration: init, share, sync, bundle operations - Methodology & Plan: 5 methodology packs, plan CRUD operations - Hooks & Orchestration: event triggers, multi-agent coordination - Plugin system: install, uninstall, enable, disable, marketplace - Commands & Settings: slash commands, memory, audit, CI/CD CI/CD updates: - Add dedicated E2E job running on Node 22 after unit tests - Upload artifacts on E2E test failures for debugging - Add ci-success job for branch protection New npm scripts: - pnpm test:e2e - Run E2E tests - pnpm test:e2e:watch - Run E2E tests in watch mode - pnpm test:all - Run unit + E2E tests * fix: improve E2E test reliability and align with actual CLI interface - Fix ESM compatibility: use import.meta.url for __dirname equivalent - Fix security: use execFileSync instead of execSync to prevent shell injection - Fix skillCount: use nullish coalescing (??) to respect explicit 0 - Fix weak assertions: replace always-true checks (exitCode !== undefined) with meaningful assertions (exitCode <= 1, hasRelevantOutput) - Fix CLI alignment: update tests to use actual command actions - methodology: load -> install, apply -> sync, validate -> info - plan: list -> templates, status -> generate - team init: add required --registry parameter All 180 E2E tests now pass. * fix: add .agent/skills directory check and timeout guards - Add .agent/skills to directory checks in init tests (fixes CI failure) - Add explicit timeout guards (exitCode !== -1) before exitCode <= 1 checks to fail fast on runCli timeouts instead of false positives
6 lines
78 B
TypeScript
6 lines
78 B
TypeScript
/**
|
|
* E2E Test Helpers - Barrel Export
|
|
*/
|
|
|
|
export * from './cli-runner.js';
|