Dashboard › craft › Distillation
4c144aaa-8764-4583-bed7-dae61e603d5a["lore_tm_v1_wP8xoJL9YiPOLJb0uWOELUYAO-ZX4ugld3sleHL2mEQ"]
Date: Aug 24, 2026
src/utils/__tests__/helpers.test.ts tests extractWorkspaceSelection() with NO_ENV = {} as NodeJS.ProcessEnv: undefined without CLI/env; --workspace cli → 'cli'; --workspace=mcp → 'mcp'; inline --workspace=-cli is accepted while split --workspace -cli is rejected; CLI overrides CRAFT_WORKSPACE; repeated workspace flags use the last valid value; invalid/final bare --workspace and empty --workspace= fall back to CRAFT_WORKSPACE when available.extractWorkspaceSelection() regression tests explicitly cover ['publish', '--workspace', '--dry-run']: it must not select '--dry-run'; returns environment workspace 'mcp' when CRAFT_WORKSPACE=mcp, otherwise undefined.setGitHubActionsOutput() tests verify single-line output is exactly version=1.2.3\n; multiline changelog output uses changelog<<EOF_<digits>_<word>\nline1\nline2\nEOF_<digits>_<word>\n; absent GITHUB_OUTPUT is a non-throwing no-op.writeGitHubActionsFile() tests set RUNNER_TEMP and GITHUB_OUTPUT to a temporary craft-test-${Date.now()} directory; verify content is written under RUNNER_TEMP/craft/changelog.md, output contains changelog_file=<absolute filePath>, absent RUNNER_TEMP returns undefined, and the craft/ subdirectory is created if absent.truncateForOutput() tests verify: strings below MAX_STEP_OUTPUT_BYTES are unchanged; oversized output contains Changelog truncated; final UTF-8 byte length is at most MAX_STEP_OUTPUT_BYTES both with and without URL; a supplied GitHub changelog URL is rendered as [View full changelog](<url>); no URL omits View full changelog; emoji (😀, 4 UTF-8 bytes) around the truncation boundary produces valid UTF-8; and ASCII truncation on an exact character boundary retains exactly the full content budget rather than dropping its final character.disableChangelogMentions() test section begins at line 297; visible test states that PR-entry @ mentions are replaced with bold formatting, using input - Fix crash on startup by @alice in [#123](https://github.com/org/repo/pull/123).