/** * NotFound component */ import React from 'react'; import { BrowserRouter as Router } from 'react-router-dom'; import { shallow } from 'enzyme'; import NotFound from '../../../src/webui/components/NotFound/index'; console.error = jest.fn(); describe(' component', () => { let routerWrapper; beforeEach(() => { routerWrapper = shallow( ); }); test('should load the component in default state', () => { expect(routerWrapper.find(NotFound)).toMatchSnapshot(); }); });