Files
KArtSell.Aegis/docs/Design/kbx-foundation-v52-fe-operational-navigation-screen-anatomy/tests/unit/kbx-test-scenario-contract.spec.ts
T
kjh2064 c41e5063b7 chore: remove kbx-foundation-v36 reference (superseded by v4 implementation)
Removed entire kbx-foundation-v36 directory as it's been replaced by
the new KBX Foundation v4 patterns implemented in this session:
- Registry-driven screen definitions
- Density-aware UI adapter components
- Feature module templates (ShadowRun, Models)

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-08-12 01:39:58 +09:00

23 lines
814 B
TypeScript

import { describe, expect, it } from 'vitest'
import {
kbxTestScenarioCatalog,
kbxTestFixtureSetCatalog,
kbxTestFixtureRefs,
kbxTestReferenceClock,
} from '@kbx/contracts'
describe('KBX canonical test scenario contract', () => {
it('covers the three golden screens', () => {
const screens = new Set(Object.values(kbxTestScenarioCatalog).map(x => x.screenId))
expect(screens.has('OMS-ORD-001')).toBe(true)
expect(screens.has('OMS-ORD-002')).toBe(true)
expect(screens.has('WMS-PICK-001')).toBe(true)
})
it('keeps deterministic synthetic references', () => {
expect(kbxTestReferenceClock).toBe('2026-08-08T09:00:00Z')
expect(Object.keys(kbxTestFixtureSetCatalog).length).toBeGreaterThan(0)
expect(kbxTestFixtureRefs['order.ship.ready.1'].orderNo).toMatch(/^TEST-/)
})
})