diff --git a/src/react-components/tests/translations.spec.ts b/src/react-components/tests/translations.spec.ts index dcb5c7f72..541dfb8a1 100644 --- a/src/react-components/tests/translations.spec.ts +++ b/src/react-components/tests/translations.spec.ts @@ -18,18 +18,14 @@ type TemplateStrings = { const test = base.extend<{ en: Language - translations: Partial + translations: SupportedLanguages templates: Partial }>({ en: async ({}, use) => { await use(supportedLanguages.en) }, translations: async ({}, use) => { - const translations: Partial = {} - for (const [language, translation] of Object.entries(supportedLanguages)) { - translations[language as keyof typeof supportedLanguages] = translation - } - await use(translations) + await use(supportedLanguages) }, templates: async ({ en }, use) => { const templates: Partial = {}