import '@testing-library/jest-dom/extend-expect' jest.mock('react-helmet', () => { const React = require('react') const plugin = jest.requireActual('react-helmet') const mockHelmet = ({ children, ...props }) => React.createElement( 'div', { ...props, className: 'mock-helmet', }, children, ) return { ...plugin, Helmet: jest.fn().mockImplementation(mockHelmet), } })