import { describe, it, expect } from 'vitest'

import { PREV_ARTIFACT_PHASE } from './requirementPhasePrompts'

// 角色模板 / 交互协议 / system prompt 组装已迁移服务端（internal/brief），相关测试
// 覆盖随之移至 internal/brief/composer_test.go。此处仅保留前端仍拥有的阶段链映射。
describe('PREV_ARTIFACT_PHASE', () => {
  it('链：planning←无、prototyping←planning、auditing←prototyping', () => {
    expect(PREV_ARTIFACT_PHASE.planning).toBeNull()
    expect(PREV_ARTIFACT_PHASE.prototyping).toBe('planning')
    expect(PREV_ARTIFACT_PHASE.auditing).toBe('prototyping')
  })
})
