You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Story] Safety net before refactoring: portable test baseline and feature-level characterization tests #28
area: testingTest suites, harnesses, verification and inventoriesstream: cleanup-refactorEpic #26: deep cleanup and restructuring of the extensiontfmAdds the issue to the TFM board automatically. Do not removeuser-storySub-issue of an epic ([Story] title prefix)
As a developer refactoring Code-XR, I want a fully green, portable test baseline plus tests that pin the user-visible surface of the extension, so that any regression introduced by the cleanup is caught by CI on Linux, Windows and macOS instead of by a user.
Context
Waves W0/W1 of the v1.2.1 programme already added 154 tests (contract, sync, logger, command registry, ratchet). Gaps found on 2026-11-25:
npm test is 708/709 on Linux: gitRevisionExporter.test.cjs:579 hardcodes Windows paths (C:/snap/...).
The unit runner needs Node 24 (--test-isolation=none) but no engines.node says so.
Make the decorator test path-portable (no behaviour change in src/).
Declare engines.node >= 24 in the root and extension package.json (dev only, not the VS Code engine).
Add test/baseline/featureBaseline.test.cjs: a snapshot of the manifest surface (command ids + titles, menu entries, view ids, settings), the runtime command registry, chart types, runtime asset list, language contract (names + extensions) and the Python CLI modes. Authorized removals are listed explicitly so the test documents each one as it lands.
Add the policy-walk roots that the monorepo move left out (docs/, adr/, packages/, apps/ide/, root README, .github/).
Commit the analysis documents in docs/cleanup/.
Acceptance criteria
npm test is 100 % green on Linux (and stays green on Windows and macOS in CI).
The feature-baseline test fails if any contributed command, menu entry, view, chart type, runtime or language disappears without being listed as an authorized removal.
No file under src/, templates/ or backend/src changes in this story; the production dist/extension.js is byte-identical (H1).
Done in #44, merged into v1.2.1 (CI green on Windows, Linux and macOS).
npm test 708/709 → 715/715 on Linux (path-portable decorator fixture).
test/baseline/: executable feature baseline (snapshot of the whole user-visible surface + the authorized-removals register). It fails on any unauthorized loss; mutation-checked.
Emoji/NUL policy walks now cover the monorepo root text.
engines.node >= 24 at the root.
Analysis documents in docs/cleanup/.
No file under src/, templates/ or backend/src changed.
area: testingTest suites, harnesses, verification and inventoriesstream: cleanup-refactorEpic #26: deep cleanup and restructuring of the extensiontfmAdds the issue to the TFM board automatically. Do not removeuser-storySub-issue of an epic ([Story] title prefix)
Activity
aMonteSl commentedon Nov 25, 2026
Done in #44, merged into
v1.2.1(CI green on Windows, Linux and macOS).npm test708/709 → 715/715 on Linux (path-portable decorator fixture).test/baseline/: executable feature baseline (snapshot of the whole user-visible surface + the authorized-removals register). It fails on any unauthorized loss; mutation-checked.engines.node >= 24at the root.docs/cleanup/.No file under
src/,templates/orbackend/srcchanged.Generated by Claude Code