import assert from 'node:assert/strict'; import test from 'node:test'; import { readFileSync } from 'node:fs'; import { resolve } from 'node:path'; const service = readFileSync(resolve(process.cwd(), 'src/inspection-findings/finding-catalog.service.ts'), 'utf8'); test('D5.4.1 exports controller-visible selection views so Nest declaration build can name them', () => { assert.match(service, /export interface CatalogSelectionItem/); assert.match(service, /export interface AssetSelectionItem extends CatalogSelectionItem/); assert.match(service, /export interface AssetTypeSelectionView/); assert.match(service, /export interface AssetSelectionView/); });