global.__JEST__ = 1; import CanLog from "../../components/CanLog"; import React from "react"; import { shallow, mount, render } from "enzyme"; import { Provider } from "react-redux"; import createStore from "../../store"; const store = createStore(); test("CanLog successfully mounts with minimal default props", () => { const component = shallow( {}} onSignalUnplotPressed={() => {}} showAddSignal={() => {}} onMessageExpanded={() => {}} /> ); expect(component.exists()).toBe(true); });