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

// Relocated from the scaffolder's default lib/qaf-value-stream.test.ts
// (npm run new:module -- qaf-value-stream, ADR 019): that path sits outside
// any __tests__/ directory, which vitest.config.ts's include globs
// (__tests__/**/*.test.ts, **/__tests__/**/*.test.ts) never match — the
// placeholder would silently never run. No other scaffolded module in this
// repo kept that root-level file (lib/qaf-differences has none either), so
// this just brings qaf-value-stream in line with the rest of the codebase.
describe('qaf-value-stream barrel', () => {
  it('module entrypoint is importable and exposes the public API', async () => {
    const mod = await import('../index')
    expect(mod).toBeDefined()
    expect(typeof mod.mapQafRowsToVsmNodes).toBe('function')
    expect(typeof mod.assessManufacturingCapability).toBe('function')
    expect(typeof mod.conservativeVaClass).toBe('function')
    expect(typeof mod.buildDefaultTitle).toBe('function')
    expect(mod.MAPPING_VERSION).toBe('qvs-1')
  })
})
