mirror of
https://github.com/hanzoui/workflow-templates-broken-zap-2026-06-08.git
synced 2026-10-30 20:44:35 +00:00
17 lines
514 B
TypeScript
17 lines
514 B
TypeScript
import { describe, it, expect } from 'vitest';
|
|
import { execSync } from 'child_process';
|
|
import { resolve } from 'path';
|
|
|
|
const siteDir = resolve(import.meta.dirname!, '../..');
|
|
|
|
describe('validate-templates script', () => {
|
|
it('passes on current templates/index.json', () => {
|
|
const result = execSync('npx tsx scripts/validate-templates.ts', {
|
|
cwd: siteDir,
|
|
encoding: 'utf-8',
|
|
});
|
|
expect(result).toContain('✅');
|
|
expect(result).toContain('templates/index.json is valid');
|
|
});
|
|
});
|