test: type the model-routing table; point skillify comment at skill-fixture.test.ts

This commit is contained in:
garrytan committed 2026-10-03 01:08:41 +00:00
1 parent 6ba9fa30e4
commit 4b5dfee265
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -9,7 +9,7 @@ import * as path from 'path';
import type { TemplateContext } from '../scripts/resolvers/types';
import { HOST_PATHS } from '../scripts/resolvers/types';
import { generateModelOverlay } from '../scripts/resolvers/model-overlay';
import { resolveModel } from '../scripts/models';
import { resolveModel, type Model } from '../scripts/models';
import { CLAUDE_FRONTIER_EVAL_MODEL } from '../lib/eval-model';
import { readOverlay } from '../scripts/resolvers/model-overlay';
import { generateCompletenessSection } from '../scripts/resolvers/preamble/generate-completeness-section';
@@ -391,7 +391,7 @@ describe('model-routing-claude', () => {
['claude-opus-5-5', 'claude'],
['claude-fable-5', 'fable-5'],
['claude-fable-5-1', 'fable-5'],
])('%s routes to %s', (input, expected) => {
] as Array<[string, Model]>)('%s routes to %s', (input, expected) => {
expect(resolveModel(input)).toBe(expected);
});
+1 -1
View File
@@ -351,7 +351,7 @@ Do NOT halt for clarification.`,
&& fs.existsSync(path.join(skillDir, 'fixtures'));
// D2 enforcement: the SKILL.md prose body must not contain conversation
// fragments (stored good/bad bodies: skill-body-narration.test.ts).
// fragments (stored good/bad bodies: skill-fixture.test.ts).
let prosesClean = false;
if (hasAllFiles) {
const skillMd = fs.readFileSync(path.join(skillDir, 'SKILL.md'), 'utf-8');