test(phase22): add aggregate phase runner entrypoint

This commit is contained in:
2026-03-25 10:43:38 +00:00
parent 7553f992b7
commit 64201a6591
2 changed files with 44 additions and 0 deletions
+29
View File
@@ -2201,3 +2201,32 @@ Validation:
Follow-ups: Follow-ups:
- Optional next bounded slice: add a dedicated `tests/phase22/index.test.cjs` aggregate entrypoint if additional phase22 suites are introduced. - 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.
+15
View File
@@ -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;