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