The convergence lint only scanned src/ + gsd-core/bin, so ~35 test files still imported core.cjs. Repoint all 33 behaviour importers to the leaf modules directly (same symbol->leaf map as the src migration; leaves are the objects core re-exported by reference), delete the now-meaningless shim-identity describe blocks in the 8 leaf tests, and delete tests/core.test.cjs (forwarded-behaviour coverage now lives at the leaves; resolveWorktreeRoot test relocated to worktree-safety in T0) and tests/lint-core-spine-imports.test.cjs (the lint is removed in T-final). Dropped the stale core.test.cjs entries from the allow-test-rule-refs allowlist; eslint-rules RuleTester fixture path pointed at io.cjs. After T6: ZERO test imports core.cjs. core.cts still builds (now fully unused); T-final deletes it. No behaviour change. Closes #1291 Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -534,7 +534,7 @@ describe('dispatchCapabilityCommand — non-ExitError from router → structured
|
||||
assert.ok(msg.includes('fake.cjs'), 'message must name the module; got: ' + msg);
|
||||
assert.ok(msg.includes('boom'), 'message must include original error message; got: ' + msg);
|
||||
// Reason must be SDK_FAIL_FAST
|
||||
const { ERROR_REASON } = require('../gsd-core/bin/lib/core.cjs');
|
||||
const { ERROR_REASON } = require('../gsd-core/bin/lib/io.cjs');
|
||||
assert.strictEqual(reason, ERROR_REASON.SDK_FAIL_FAST, 'reason must be SDK_FAIL_FAST');
|
||||
});
|
||||
|
||||
@@ -625,7 +625,7 @@ describe('dispatchCapabilityCommand — non-ExitError from router → structured
|
||||
// ─── 10. Async router (thenable) → structured error ─────────────────────────
|
||||
|
||||
describe('dispatchCapabilityCommand — async router returns a Promise → structured error', () => {
|
||||
const { ERROR_REASON } = require('../gsd-core/bin/lib/core.cjs');
|
||||
const { ERROR_REASON } = require('../gsd-core/bin/lib/io.cjs');
|
||||
|
||||
test('router returns Promise.resolve() → error() called with "must be synchronous" + SDK_FAIL_FAST', () => {
|
||||
const errorCalls = [];
|
||||
|
||||
Reference in New Issue
Block a user