test(mobile): strengthen snapshot regression

This commit is contained in:
Brennan Benson
2026-08-01 12:21:33 -07:00
parent 0d4807845d
commit 6bcdc06576
@@ -23,11 +23,14 @@ let tr = raw
const box = { nested: { tr } }
const { nested: { tr: snapshot } } = box
tr = t
export const label = <Text>{snapshot('mobileWorkspaceStatuses.todo')}</Text>
export const label = <><Text>{box.nested.tr('mobileWorkspaceStatuses.todo')}</Text><Text>{snapshot('mobileWorkspaceStatuses.progress')}</Text></>
`
expect(translationKeys(source)).toEqual([])
expect(candidateTexts(source)).toEqual(['mobileWorkspaceStatuses.todo'])
expect(candidateTexts(source)).toEqual([
'mobileWorkspaceStatuses.todo',
'mobileWorkspaceStatuses.progress'
])
})
it('keeps property writes scoped to the current object allocation', () => {