Files
msd-core/tests/model-alias-map.test.cjs
Jakub Zych a9a7a328e6 refactor: hard-fork GSD -> MSD (Make Software Done)
Mechanical rename produced by scripts/msd-rename.cjs: gsd/Gsd/GSD -> msd/Msd/MSD
across contents and paths, upstream package/repo coordinates -> @golem15/msd-core
and golem15com/msd-core. Deep links into upstream history, sibling upstream
packages, the GSD-2 import feature, CHANGELOG.md and .changeset/ are kept as-is.

Hand edits on top: MSD block-letter banner and logos, LICENSE copyright line,
package/plugin identity, regenerated lockfile, install-tree fixtures, derived
registries and benchmark baseline; migration checksum baseline re-locked
(MSD keeps its own install state, so no install had applied the old sums);
sort-order and regex-escaped expectations in tests adjusted.
2026-10-06 01:47:40 +02:00

28 lines
829 B
JavaScript

/**
* MSD 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('../msd-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-5', () => {
assert.equal(MODEL_ALIAS_MAP.sonnet, 'claude-sonnet-5');
});
test('haiku maps to claude-haiku-4-5', () => {
assert.equal(MODEL_ALIAS_MAP.haiku, 'claude-haiku-4-5');
});
});