From 192429c2bc447ec1b44301d5a844b156a3d81a1b Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Tue, 25 Jun 2024 16:12:20 +0300 Subject: [PATCH] Use mode:all --- karma.config.cjs | 9 ++++++++- packages/ts/react-i18n/test/i18n.spec.tsx | 1 - 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/karma.config.cjs b/karma.config.cjs index cf04274ee5..929b75362d 100644 --- a/karma.config.cjs +++ b/karma.config.cjs @@ -169,7 +169,14 @@ module.exports = (config) => { reactPlugin({ include: '**/*.tsx', babel: { - plugins: ['module:@preact/signals-react-transform'], + plugins: [ + [ + 'module:@preact/signals-react-transform', + { + mode: 'all', + }, + ], + ], }, }), ], diff --git a/packages/ts/react-i18n/test/i18n.spec.tsx b/packages/ts/react-i18n/test/i18n.spec.tsx index 93fd7bd716..71bd450bfc 100644 --- a/packages/ts/react-i18n/test/i18n.spec.tsx +++ b/packages/ts/react-i18n/test/i18n.spec.tsx @@ -252,7 +252,6 @@ describe('@vaadin/hilla-react-i18n', () => { describe('react integration', () => { it('should re-render when language changes', async () => { - /** @useSignals */ function TestTranslateComponent() { return
{i18n.translate('addresses.form.city.label')}
; }