Skip to content

feat(toolkit): external fixture test + CI for clean-install verification - #69

Merged
sepehr-safari merged 1 commit into
mainfrom
feat/toolkit-external-fixture
Jul 8, 2026
Merged

feat(toolkit): external fixture test + CI for clean-install verification#69
sepehr-safari merged 1 commit into
mainfrom
feat/toolkit-external-fixture

Conversation

@sepehr-safari

Copy link
Copy Markdown
Member

Summary

Creates an external fixture project that installs @ocpp-debugkit/toolkit from a pnpm pack tarball (not workspace symlinks) to verify subpath exports work for real consumers.

Changes

  • tests/external-fixture/test.mjs — 45 assertions covering every subpath export:
    • /core — parseTrace, detectFailures, buildSessionTimeline, summarizeSessions, validateMessage, normalizeEvents, MAX_INPUT_SIZE_BYTES, ParseError
    • /scenarios — scenarios array, getScenario, 5 scenarios
    • /reporter — generateMarkdownReport, report structure
    • /replay — ReplayEngine, step, reset, totalEvents
    • /react — SessionTimeline, MessageInspector, FailureSummary, ReportViewer, ReplayControls
    • /fixtures — normalSession, failedAuth, connectorFault
    • Root barrel "." — re-exports
    • CLI smoke — ocpp-debugkit inspect, ocpp-debugkit scenario list
  • scripts/test-external-fixture.sh — builds, packs, installs in temp project, runs test
  • CI job added to .github/workflows/ci.yml (runs in parallel with main CI)
  • Excluded from vitest and eslint
  • pnpm test:external-fixture script

Verification

  • pnpm test — 196/196 unit tests pass
  • pnpm lint — clean
  • pnpm typecheck — clean
  • pnpm format:check — clean
  • pnpm test:external-fixture — 45/45 assertions pass (local)

Closes #56

- Create tests/external-fixture/ — minimal project that installs
  @ocpp-debugkit/toolkit from pnpm pack tarball (not workspace symlinks)
- test.mjs exercises every subpath export: /core, /scenarios, /reporter,
  /replay, /react, /fixtures, root barrel, and CLI smoke test
- 45 assertions covering parseTrace, detectFailures, getScenario,
  generateMarkdownReport, ReplayEngine, React component exports,
  fixture imports, and CLI inspect/scenario commands
- Add scripts/test-external-fixture.sh — builds, packs, installs in
  temp project, runs test
- Add CI job (external-fixture) to ci.yml running on every PR + push
- Exclude external-fixture from vitest and eslint
- Add pnpm test:external-fixture script

Closes #56
@vercel

vercel Bot commented Jul 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ocpp-debugkit-web Ready Ready Preview, Comment Jul 8, 2026 4:18pm

@sepehr-safari
sepehr-safari merged commit aa9b2c3 into main Jul 8, 2026
4 checks passed
@sepehr-safari
sepehr-safari deleted the feat/toolkit-external-fixture branch July 8, 2026 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(toolkit): external fixture test + CI for clean-install verification

1 participant