core-plugin-api: avoid using suspense mode of useTranslation in tests
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -37,7 +37,9 @@ export const useTranslationRef = <
|
||||
|
||||
const internalRef = toInternalTranslationRef(translationRef);
|
||||
|
||||
const { t } = useTranslation(internalRef.id);
|
||||
const { t } = useTranslation(internalRef.id, {
|
||||
useSuspense: process.env.NODE_ENV !== 'test',
|
||||
});
|
||||
|
||||
const defaultMessages = internalRef.getDefaultMessages();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user