hustcc b1369dfc94 1. simplify ts config
2. update demo code
3. update babel-preset-env
2017-12-24 18:12:00 +08:00

15 lines
250 B
JavaScript

/**
* Created by hustcc.
* Contract: i@hust.cc
*/
import Adapter from 'enzyme-adapter-react-15';
import { configure } from 'enzyme';
// refs only work with mount, yes.
configure({
adapter: new Adapter(),
disableLifecycleMethods: false,
});