Skip to content

Commit 3ba63fe

Browse files
committed
fix: use dot-notation for ambiguous CalcTest component in type test
CalcTest has both .satori and .takumi variants so the bare name is not registered in OgImageComponents. Use CalcTest.satori instead.
1 parent 47e85d3 commit 3ba63fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/fixtures/basic/type-test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ defineOgImage('NuxtSeo.satori', { title: 'Test' })
1616
// Bare shorthand (unambiguous component)
1717
defineOgImage('Creal', { title: 'Test' })
1818

19-
// Component with no typed props (runtime defineProps)
20-
defineOgImage('CalcTest', {})
19+
// Ambiguous component (has both .satori and .takumi variants, so must use dot-notation)
20+
defineOgImage('CalcTest.satori', {})
2121

2222
// Getter function for reactive props
2323
defineOgImage('CustomFonts', { title: () => 'reactive' })

0 commit comments

Comments
 (0)