App.test.js 513 B

1234567891011121314151617
  1. import "raf/polyfill";
  2. import React from "react";
  3. import ReactDOM from "react-dom";
  4. import App from "./App";
  5. import { configure, shallow } from 'enzyme';
  6. import Adapter from 'enzyme-adapter-react-16';
  7. // Configure Enzyme for the React version we're using.
  8. // Could be in a test setup file. Required for React 16, 15, 0.14, 0.13.
  9. configure({ adapter: new Adapter });
  10. describe("<App />>", () => {
  11. it("should render App", () => {
  12. const wrapper = shallow(<App />);
  13. console.log(wrapper.debug());
  14. });
  15. });