chore(lint): reduce warning debt across core adapters and model clients

This commit is contained in:
William Valentin
2026-02-15 23:03:42 -08:00
parent 92da407e22
commit 49b752e8b0
17 changed files with 239 additions and 117 deletions
+14 -5
View File
@@ -62,8 +62,11 @@ describe('SkillInstaller', () => {
const skill = installer.install(sourceDir);
expect(skill).not.toBeNull();
expect(skill!.manifest.name).toBe('my-skill');
expect(skill!.instructions).toBe('# My Skill\nDo the thing.');
if (!skill) {
throw new Error('Expected installed skill');
}
expect(skill.manifest.name).toBe('my-skill');
expect(skill.instructions).toBe('# My Skill\nDo the thing.');
expect(existsSync(join(managedDir, 'my-skill', 'SKILL.md'))).toBe(true);
});
@@ -79,7 +82,10 @@ describe('SkillInstaller', () => {
const skill = installer.install(sourceDir);
expect(skill).not.toBeNull();
expect(skill!.manifest.tier).toBe('managed');
if (!skill) {
throw new Error('Expected installed skill');
}
expect(skill.manifest.tier).toBe('managed');
});
it('uses manifest.json name field for the installed directory name', () => {
@@ -131,8 +137,11 @@ describe('SkillInstaller', () => {
const skill = installer.install(sourceV2);
expect(skill).not.toBeNull();
expect(skill!.manifest.version).toBe('2.0.0');
expect(skill!.instructions).toBe('# V2');
if (!skill) {
throw new Error('Expected installed skill');
}
expect(skill.manifest.version).toBe('2.0.0');
expect(skill.instructions).toBe('# V2');
});
it('throws when source directory does not exist', () => {