( host: 'claude' | 'codex', tier: 1 | 2 | 3 | 4, model?: string, )
| 18 | import { generatePreamble } from '../scripts/resolvers/preamble'; |
| 19 | |
| 20 | function makeCtx( |
| 21 | host: 'claude' | 'codex', |
| 22 | tier: 1 | 2 | 3 | 4, |
| 23 | model?: string, |
| 24 | ): TemplateContext { |
| 25 | return { |
| 26 | skillName: 'test-skill', |
| 27 | tmplPath: 'test.tmpl', |
| 28 | host, |
| 29 | paths: HOST_PATHS[host], |
| 30 | preambleTier: tier, |
| 31 | ...(model ? { model } : {}), |
| 32 | }; |
| 33 | } |
| 34 | |
| 35 | describe('Preamble composition order', () => { |
| 36 | test('AskUserQuestion Format renders before Model-Specific Behavioral Patch (tier 2, claude)', () => { |
no outgoing calls
no test coverage detected