Skip to content

Commit bbc2c59

Browse files
committed
test(ui): declare the call-site gate test's expected finding address as fixture data
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgXDwFw71MwSG9FKYDQ
1 parent dffa45d commit bbc2c59

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎ui/scripts/__tests__/check-i18n-call-site-keys.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ describe('the pack-shaped namespaces are part of the en pack (objectstack#30588)
297297
'packages/i18n/src/locales/en.ts': EN_FIXTURE,
298298
'packages/x/src/page.tsx': `import { useObjectTranslation } from '${I18N_PKG}';\nexport function P() { const { t } = useObjectTranslation(); return t('shop.title'); }\n`,
299299
});
300+
// fixture-address: the finding the gate reports for the fixture page written just above
300301
expect(findingsOf(root, 'missing-key')).toEqual(['shop.title@packages/x/src/page.tsx:2']);
301302
});
302303
});

0 commit comments

Comments
 (0)