diff --git a/test/jest/__mock__/reactItl.mock.js b/test/jest/__mock__/reactItl.mock.js deleted file mode 100644 index e58bb7be..00000000 --- a/test/jest/__mock__/reactItl.mock.js +++ /dev/null @@ -1,33 +0,0 @@ -import React from 'react'; - -jest.mock('react-intl', () => { - const intl = { - formatMessage: ({ id }) => id, - formatNumber: (value) => value - }; - - return { - ...jest.requireActual('react-intl'), - FormattedMessage: jest.fn(({ id, values, children }) => { - if (children) { - return children([id]); - } - - const valuesString = values ? (`-${JSON.stringify(values)}`) : ''; - - return `${id}${valuesString}`; - }), - FormattedTime: jest.fn(({ value, children }) => { - if (children) { - return children([value]); - } - - return value; - }), - FormattedNumber: jest.fn((value) => { - return value; - }), - useIntl: () => intl, - injectIntl: (Component) => (props) => , - }; -});