feat(skills): support install preflight-only mode
This commit is contained in:
@@ -187,6 +187,17 @@ describe('skills CLI helpers', () => {
|
||||
rmSync(root, { recursive: true, force: true });
|
||||
});
|
||||
|
||||
it('returns null install preflight view when source is invalid', () => {
|
||||
const root = mkdtempSync(join(tmpdir(), 'flynn-skills-cli-'));
|
||||
const sourceDir = join(root, 'invalid-source-skill');
|
||||
mkdirSync(sourceDir, { recursive: true });
|
||||
|
||||
const view = toSkillInstallPreflightView(sourceDir);
|
||||
|
||||
expect(view).toBeNull();
|
||||
rmSync(root, { recursive: true, force: true });
|
||||
});
|
||||
|
||||
it('renders install preflight output text', () => {
|
||||
const output = renderSkillInstallPreflight({
|
||||
sourcePath: '/tmp/source-skill',
|
||||
|
||||
Reference in New Issue
Block a user