18 lines
723 B
TypeScript
18 lines
723 B
TypeScript
import { readFile } from 'node:fs/promises';
|
|
import path from 'node:path';
|
|
import { describe, expect, it } from 'vitest';
|
|
|
|
describe('planning-with-files Skill', () => {
|
|
it('requires planning files directly in the current project root', async () => {
|
|
const skill = await readFile(
|
|
path.join(process.cwd(), '.opencode', 'skills', 'planning-with-files', 'SKILL.md'),
|
|
'utf8',
|
|
);
|
|
|
|
expect(skill).toContain('<current-project-root>/task_plan.md');
|
|
expect(skill).toContain('不是本 Skill 的安装目录、进程工作目录、用户主目录');
|
|
expect(skill).toContain('直接在当前项目根目录创建三个文件');
|
|
expect(skill).toContain('只继续维护根目录文件');
|
|
});
|
|
});
|