From 64201a659197604c000bede63514b3078aafd03b Mon Sep 17 00:00:00 2001 From: robbond Date: Wed, 25 Mar 2026 10:43:38 +0000 Subject: [PATCH] test(phase22): add aggregate phase runner entrypoint --- memory-bank/change-log.md | 29 +++++++++++++++++++++++++++++ tests/phase22/index.test.cjs | 15 +++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 tests/phase22/index.test.cjs diff --git a/memory-bank/change-log.md b/memory-bank/change-log.md index 3105e2b4..352edf27 100644 --- a/memory-bank/change-log.md +++ b/memory-bank/change-log.md @@ -2201,3 +2201,32 @@ Validation: Follow-ups: - Optional next bounded slice: add a dedicated `tests/phase22/index.test.cjs` aggregate entrypoint if additional phase22 suites are introduced. + +--- + +### CL-063: TASK22260 next slice — phase22 aggregate runner entrypoint (bounded test-runner hardening) + +date: 2026-03-25 +author: Cline +scope: `tests/phase22/index.test.cjs` +type: change +rationale: Continue the bounded test-harness stream by introducing a phase-level aggregate runner for phase22, matching established conventions used in other phase suites. +impact: Improves consistency and future scalability of phase22 tests by enabling a single entry command as additional phase22 suites are added. +status: completed + +Summary: + +- Added `tests/phase22/index.test.cjs` aggregate runner. +- Runner currently executes `core-token-behaviour.test.cjs` and prints a phase-level completion line. +- Exported `run` and kept direct CLI execution guard parity (`require.main === module`). + +Validation: + +- `node tests/phase22/index.test.cjs` -> pass + - core-token: 2/2 + - phase22 combined: pass +- `npm run lint` -> warnings only (pre-existing `react-hooks/exhaustive-deps`; no new lint errors) + +Follow-ups: + +- Optional next bounded slice: add additional phase22 suites (e.g., shared-client utility behaviour tests) under this aggregate runner as migration coverage expands. diff --git a/tests/phase22/index.test.cjs b/tests/phase22/index.test.cjs new file mode 100644 index 00000000..b4f274b6 --- /dev/null +++ b/tests/phase22/index.test.cjs @@ -0,0 +1,15 @@ +const runCoreTokenTests = require("./core-token-behaviour.test.cjs"); + +const run = async () => { + await runCoreTokenTests(); + console.log("Phase 22 combined suite passed."); +}; + +if (require.main === module) { + run().catch((error) => { + console.error(error); + process.exit(1); + }); +} + +module.exports = run;