2020-08-20 08:21:42 -05:00
|
|
|
import '@testing-library/jest-dom';
|
2022-10-06 10:34:04 -05:00
|
|
|
import i18next from 'i18next';
|
2022-03-22 12:03:07 -05:00
|
|
|
import failOnConsole from 'jest-fail-on-console';
|
2022-10-06 10:34:04 -05:00
|
|
|
import { initReactI18next } from 'react-i18next';
|
2022-04-22 08:33:13 -05:00
|
|
|
|
2020-11-18 08:18:55 -06:00
|
|
|
import { matchers } from './matchers';
|
|
|
|
|
2022-03-22 12:03:07 -05:00
|
|
|
failOnConsole({
|
|
|
|
shouldFailOnLog: true,
|
|
|
|
});
|
2020-11-18 08:18:55 -06:00
|
|
|
expect.extend(matchers);
|
2022-10-06 10:34:04 -05:00
|
|
|
|
|
|
|
i18next.use(initReactI18next).init({
|
|
|
|
resources: {},
|
|
|
|
returnEmptyString: false,
|
|
|
|
lng: 'en-US', // this should be the locale of the phrases in our source JSX
|
|
|
|
});
|