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>
28 lines
833 B
JavaScript
28 lines
833 B
JavaScript
/**
|
|
* GSD Tools Tests - MODEL_ALIAS_MAP
|
|
*
|
|
* Verifies that model aliases map to current Claude model IDs.
|
|
* Regression test for #1690: aliases were pointing to outdated model versions.
|
|
*
|
|
* Uses node:test and node:assert/strict (NOT Jest).
|
|
*/
|
|
|
|
const { test, describe } = require('node:test');
|
|
const assert = require('node:assert/strict');
|
|
|
|
const { MODEL_ALIAS_MAP } = require('../gsd-core/bin/lib/model-catalog.cjs');
|
|
|
|
describe('MODEL_ALIAS_MAP (#1690 regression)', () => {
|
|
test('opus maps to claude-opus-4-8', () => {
|
|
assert.equal(MODEL_ALIAS_MAP.opus, 'claude-opus-4-8');
|
|
});
|
|
|
|
test('sonnet maps to claude-sonnet-4-6', () => {
|
|
assert.equal(MODEL_ALIAS_MAP.sonnet, 'claude-sonnet-4-6');
|
|
});
|
|
|
|
test('haiku maps to claude-haiku-4-5', () => {
|
|
assert.equal(MODEL_ALIAS_MAP.haiku, 'claude-haiku-4-5');
|
|
});
|
|
});
|