test(cli-e2e): shared local-source fixture preparation helper#627
Merged
Conversation
rickylabs
force-pushed
the
test/606-shared-local-source-fixture
branch
from
July 11, 2026 12:45
bb2f1a6 to
0af714a
Compare
rickylabs
marked this pull request as ready for review
July 11, 2026 13:06
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.
Closes #606
Summary
Extracts the per-gate generated-project local-source mapping into one shared helper,
packages/cli/e2e/src/application/gates/scaffold/local-source-fixture.ts(resolveLocalSourceImports/prepareLocalSourceFixture/localSourceFixtureScript), parameterized by package set + config/import-map targets. Both existing call sites refactored onto it:prepare-flow-b-fixture.ts(test(cli-e2e): #409 T8 real Flow-B grouped-trace merge gate #598's per-resource telemetry/sdk mapping) — local mode now routes through the helper; published mode unchanged.ui-ai-gates.ts(test(cli-e2e): scaffold.runtime coverage for ui:add ai — McpUiWidget + generative-UI renderer #597'sscaffold.ui-local-source@netscript/ai mapping) — the inlineconfig.importsrewrite is replaced by the helper-generated script.Test-layer only: no scaffold templates, no product source, no
deno.lockchurn. The generateddeno evalscript is executed in a real subprocess test, not just string-inspected.Lane + evidence
WSL Codex slice (thread
019f5118-7d25…, worktreens-wt-606) under the beta-7 orchestrator (df71d36c); run artifacts at.llm/runs/test-606-shared-fixture--codex/. Helper + e2e-layer tests 11/0; scoped check/lint/fmt onpackages/cli599 files 0 findings. Narrow per-gate CLI execution isn't supported by the currentgates/runsurface (worklog drift D2) — this PR's CI scaffold-runtime job exercises both refactored call sites live.