import {shallow} from "enzyme"; import * as React from "react"; import {Header} from "./Header"; describe("", () => { const component = shallow(, {context: {router: {}}}); it("matches snapshot", () => { expect(component).toMatchSnapshot(); }); });