feat(toolkit): external fixture test + CI for clean-install verification - #69
Merged
Merged
Conversation
- 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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Creates an external fixture project that installs
@ocpp-debugkit/toolkitfrom apnpm packtarball (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, connectorFaultocpp-debugkit inspect,ocpp-debugkit scenario listscripts/test-external-fixture.sh— builds, packs, installs in temp project, runs test.github/workflows/ci.yml(runs in parallel with main CI)pnpm test:external-fixturescriptVerification
pnpm test— 196/196 unit tests passpnpm lint— cleanpnpm typecheck— cleanpnpm format:check— cleanpnpm test:external-fixture— 45/45 assertions pass (local)Closes #56