// Public entrypoint smoke test (ADR 019) — proves the index.ts barrel
// itself re-exports correctly, distinct from the internal/*.test.ts files
// which import internal/ modules directly.

import { describe, expect, it } from 'vitest'
import { computeTakt, runValidation } from '../index'

describe('vsm-engine public entrypoint', () => {
  it('exposes computeTakt through the barrel', () => {
    const result = computeTakt({ shiftModel: { hoursPerShift: 8, shiftsPerDay: 1, breakMinPerShift: 0 }, workingDays: 1, demandQuantity: 100 })
    expect(result.taktTimeSec).toBe(288) // 8*3600/100
  })

  it('exposes runValidation through the barrel', () => {
    const result = runValidation([], [])
    expect(Array.isArray(result.issues)).toBe(true)
    expect(Array.isArray(result.gaps)).toBe(true)
  })
})
