templates/rails/spec/javascript/testHelper.js in make_it_so-0.4.5 vs templates/rails/spec/javascript/testHelper.js in make_it_so-0.5.0
- old
+ new
@@ -1,4 +1,8 @@
+const Enzyme = require('enzyme');
+const EnzymeAdapter = require('enzyme-adapter-react-16');
+Enzyme.configure({ adapter: new EnzymeAdapter() });
+
import { shallow, mount } from 'enzyme';
import jasmineEnzyme from 'jasmine-enzyme';
import React from 'react';
import fetchPonyfill from 'fetch-ponyfill';
const {fetch, Request, Response, Headers} = fetchPonyfill({});