From 6bcdc0657641cf74f2fd2e9b5ed088c02f842203 Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Sat, 1 Aug 2026 12:21:33 -0700 Subject: [PATCH] test(mobile): strengthen snapshot regression --- .../mobile-localization-exact-head-regressions.test.mjs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/config/scripts/mobile-localization-exact-head-regressions.test.mjs b/config/scripts/mobile-localization-exact-head-regressions.test.mjs index 0960a35b420..15a255a60c9 100644 --- a/config/scripts/mobile-localization-exact-head-regressions.test.mjs +++ b/config/scripts/mobile-localization-exact-head-regressions.test.mjs @@ -23,11 +23,14 @@ let tr = raw const box = { nested: { tr } } const { nested: { tr: snapshot } } = box tr = t -export const label = {snapshot('mobileWorkspaceStatuses.todo')} +export const label = <>{box.nested.tr('mobileWorkspaceStatuses.todo')}{snapshot('mobileWorkspaceStatuses.progress')} ` 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', () => {