import { execFileSync } from 'node:child_process' import { join } from 'node:path' import { describe, expect, it } from 'vitest' describe('KBX component manifest', () => { it('validates the six Golden Components against real source files', () => { const repositoryRoot = join(process.cwd(), '..') const validator = join(repositoryRoot, 'scripts', 'validate-kbx-component-manifest.mjs') const output = execFileSync(process.execPath, [validator, '--root', '.'], { cwd: process.cwd(), encoding: 'utf8' }) expect(output).toContain('failures=0') }) })