Skip to content

Commit

Permalink
Fix Jest console.assert
Browse files Browse the repository at this point in the history
See console.assert not throwing with v22.4.0 jestjs/jest#5634
  • Loading branch information
tkrotoff committed Feb 22, 2018
1 parent cd8f47f commit e5e5594
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/react-form-with-constraints/src/SetupEnzyme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@ import { configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';

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

// FIXME See console.assert not throwing with v22.4.0 https://github.com/facebook/jest/issues/5634
import assert from 'assert';
console.assert = assert;

0 comments on commit e5e5594

Please sign in to comment.