blob: 0cc15af2cd3e126b11f4b9aa5e55c093f4339bf0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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/);
});
|