Reduce company skill list payloads

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Dotta
2026-03-16 17:45:28 -05:00
parent cca086b863
commit 8460fee380
4 changed files with 58 additions and 13 deletions

View File

@@ -31,6 +31,7 @@ const issueSvc = {
const companySkillSvc = {
list: vi.fn(),
listFull: vi.fn(),
readFile: vi.fn(),
importPackageFiles: vi.fn(),
};
@@ -148,7 +149,7 @@ describe("company portability", () => {
issueSvc.list.mockResolvedValue([]);
issueSvc.getById.mockResolvedValue(null);
issueSvc.getByIdentifier.mockResolvedValue(null);
companySkillSvc.list.mockResolvedValue([
const companySkills = [
{
id: "skill-1",
companyId: "company-1",
@@ -194,7 +195,9 @@ describe("company portability", () => {
sourceKind: "local_path",
},
},
]);
];
companySkillSvc.list.mockResolvedValue(companySkills);
companySkillSvc.listFull.mockResolvedValue(companySkills);
companySkillSvc.readFile.mockImplementation(async (_companyId: string, skillId: string, relativePath: string) => {
if (skillId === "skill-2") {
return {