"use strict";
// The latest version of Enzyme (upgrade from 2 to 3) has some breaking
// changes.  They now use an adapter approach for different versions
// of react.
//
// https://github.com/airbnb/enzyme/blob/master/docs/guides/migration-from-2-to-3.md
//
// We now must load an adapter before each test.  This shim is used during
// jest configurtion to load the adapter before each test in package.json
//
// ...
// "setupFiles": [
//     "<rootDir>/bin/setupEnzyme.js"
// ],
// ...
//
const debug = require('debug')('setupEnzyme');
const Enzyme = require('enzyme');
const Adapter = require('enzyme-adapter-react-16');
debug('Enzyme: %O, Adapter: %O', Enzyme, Adapter);
Enzyme.configure({
    adapter: new Adapter()
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2V0dXBFbnp5bWUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzZXR1cEVuenltZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsdUVBQXVFO0FBQ3ZFLG9FQUFvRTtBQUNwRSxZQUFZO0FBQ1osRUFBRTtBQUNGLG9GQUFvRjtBQUNwRixFQUFFO0FBQ0YsMEVBQTBFO0FBQzFFLHlFQUF5RTtBQUN6RSxFQUFFO0FBQ0YsTUFBTTtBQUNOLGtCQUFrQjtBQUNsQixxQ0FBcUM7QUFDckMsS0FBSztBQUNMLE1BQU07QUFDTixFQUFFO0FBRUYsTUFBTSxLQUFLLEdBQUcsT0FBTyxDQUFDLE9BQU8sQ0FBQyxDQUFDLGFBQWEsQ0FBQyxDQUFDO0FBQzlDLE1BQU0sTUFBTSxHQUFHLE9BQU8sQ0FBQyxRQUFRLENBQUMsQ0FBQztBQUNqQyxNQUFNLE9BQU8sR0FBRyxPQUFPLENBQUMseUJBQXlCLENBQUMsQ0FBQztBQUVuRCxLQUFLLENBQUMseUJBQXlCLEVBQUUsTUFBTSxFQUFFLE9BQU8sQ0FBQyxDQUFDO0FBRWxELE1BQU0sQ0FBQyxTQUFTLENBQUM7SUFDaEIsT0FBTyxFQUFFLElBQUksT0FBTyxFQUFFO0NBQ3RCLENBQUMsQ0FBQyJ9