Skip to content

Commit

Permalink
[Tests] add debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Mar 30, 2021
1 parent 033e033 commit 25b3de6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/enzyme-test-suite/test/_helpers/setupAdapters.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
const util = require('util');
const Enzyme = require('enzyme');
const wrap = require('mocha-wrap');
const inspect = require('object-inspect');

// eslint-disable-next-line prefer-destructuring
const resetWarningCache = require('prop-types').checkPropTypes.resetWarningCache;

const { VERSION } = require('./version');

const Adapter = require('./adapter');

console.error(`*** React version: v${VERSION}`);
console.error(`*** Adapter: ${inspect(Adapter)}`);

Enzyme.configure({ adapter: new Adapter() });

const origWarn = console.warn;
Expand Down

0 comments on commit 25b3de6

Please sign in to comment.