c98870f27d
Co-authored-by: Matthew Russell <mattrussell36@gmail.com>
18 lines
494 B
TypeScript
18 lines
494 B
TypeScript
import '@testing-library/jest-dom';
|
|
import ResizeObserver from 'resize-observer-polyfill';
|
|
import { locales } from '@vegaprotocol/i18n';
|
|
import i18n from 'i18next';
|
|
import { initReactI18next } from 'react-i18next';
|
|
|
|
// Set up i18n instance so that components have the correct default
|
|
// en translations
|
|
i18n.use(initReactI18next).init({
|
|
// we init with resources
|
|
resources: locales,
|
|
fallbackLng: 'en',
|
|
ns: ['wallet'],
|
|
defaultNS: 'wallet',
|
|
});
|
|
|
|
global.ResizeObserver = ResizeObserver;
|