22 lines
637 B
TypeScript
22 lines
637 B
TypeScript
import '@testing-library/jest-dom';
|
|
import ResizeObserver from 'resize-observer-polyfill';
|
|
import { defaultFallbackInView } from 'react-intersection-observer';
|
|
import { locales } from '@vegaprotocol/i18n';
|
|
import i18n from 'i18next';
|
|
import { initReactI18next } from 'react-i18next';
|
|
|
|
defaultFallbackInView(true);
|
|
global.ResizeObserver = ResizeObserver;
|
|
|
|
// 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: ['accounts'],
|
|
defaultNS: 'accounts',
|
|
});
|
|
|
|
global.ResizeObserver = ResizeObserver;
|