import { test } from 'node:test'; import assert from 'node:assert/strict'; import { execFile } from 'node:child_process'; import { dirname, join } from 'node:path'; import { promisify } from 'node:util'; import { fileURLToPath } from 'node:url'; const exec = promisify(execFile); const HERE = dirname(fileURLToPath(import.meta.url)); const SCRIPT = join(HERE, '..', '..', '..', 'skills', 'vercel-optimize', 'scripts', 'check-citations.mjs'); test('check-citations script validates the local allow-list', async () => { const { stderr } = await exec('node', [SCRIPT]); assert.match(stderr, /OK/); });