Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default () => {
addSerializers(
expect,
enzymeRenderedSerializer(),
minimalise((value, key) => omitProps.has(key))
);
const realIntl = Intl;
beforeEach(() => {
global.Intl = {
DateTimeFormat: () => ({
resolvedOptions: () => ({ timeZone: "Europe/London" })
})
};
});
afterEach(() => {
global.Intl = realIntl;
jest.restoreAllMocks();
});