From 0496c151e619af42bb4063b8ef5b4fd19756b045 Mon Sep 17 00:00:00 2001 From: Harlan GitHub Agent Date: Fri, 9 Oct 2026 13:03:49 +1100 Subject: [PATCH] fix(registry): coalesce undefined Skill behaviors to null --- layers/registry/app/components/SkillDetail.vue | 2 +- ...ill-detail-duplicate-canonical-path.nuxt.test.ts | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/layers/registry/app/components/SkillDetail.vue b/layers/registry/app/components/SkillDetail.vue index 88b29434..0c33c78a 100644 --- a/layers/registry/app/components/SkillDetail.vue +++ b/layers/registry/app/components/SkillDetail.vue @@ -2335,7 +2335,7 @@ useHead(computed(() => ({ > { wrapper.unmount() }) + + it('passes null behaviors when a raw snapshot lacks them', async () => { + const wrapper = await mountSuspended( + await import('../../layers/registry/app/components/SkillDetail.vue').then(module => module.default), + { props: { owner: 'mirror', repo: 'multi', name: 'shared-skill' } }, + ) + + const panel = wrapper.findComponent(SkillBehaviors) + expect(panel.exists()).toBe(true) + expect(panel.props('behaviors')).toBe(null) + wrapper.unmount() + }) })