Files
grafana/public/test/setupTests.ts
T

23 lines
531 B
TypeScript
Raw Normal View History

2020-08-20 16:21:42 +03:00
import '@testing-library/jest-dom';
2022-10-06 16:34:04 +01:00
import i18next from 'i18next';
import failOnConsole from 'jest-fail-on-console';
2022-10-06 16:34:04 +01:00
import { initReactI18next } from 'react-i18next';
2022-04-22 14:33:13 +01:00
import { matchers } from './matchers';
if (process.env.CI) {
failOnConsole({
shouldFailOnLog: true,
shouldFailOnDebug: true,
shouldFailOnInfo: true,
});
}
expect.extend(matchers);
2022-10-06 16:34:04 +01:00
i18next.use(initReactI18next).init({
resources: {},
returnEmptyString: false,
lng: 'en-US', // this should be the locale of the phrases in our source JSX
});