mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
Fix Jest diff call (#17921)
This commit is contained in:
parent
29a1559619
commit
a8fce06d3e
|
|
@ -1,7 +1,7 @@
|
||||||
// copied from scripts/jest/matchers/toWarnDev.js
|
// copied from scripts/jest/matchers/toWarnDev.js
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const jestDiff = require('jest-diff');
|
const jestDiff = require('jest-diff').default;
|
||||||
const util = require('util');
|
const util = require('util');
|
||||||
|
|
||||||
function shouldIgnoreConsoleError(format, args) {
|
function shouldIgnoreConsoleError(format, args) {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const jestDiff = require('jest-diff');
|
const jestDiff = require('jest-diff').default;
|
||||||
const util = require('util');
|
const util = require('util');
|
||||||
const shouldIgnoreConsoleError = require('../shouldIgnoreConsoleError');
|
const shouldIgnoreConsoleError = require('../shouldIgnoreConsoleError');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user