import React from 'react'; import { mount } from 'enzyme'; import App from '../src/App'; import HelloWorld from '../src/components/hello-world'; describe('', () => { const wrap = mount(); it('renders', () => { expect(wrap.find(App).exists()).toBe(true); }); it('contains HelloWorld component', () => { expect(wrap.find(HelloWorld).exists()).toBe(true); }); });