diff --git a/packages/jest-diff/src/index.js b/packages/jest-diff/src/index.js index be6b39a0d7b7..d7976a25a909 100644 --- a/packages/jest-diff/src/index.js +++ b/packages/jest-diff/src/index.js @@ -17,18 +17,18 @@ import diffStrings from './diff_strings'; import {NO_DIFF_MESSAGE, SIMILAR_MESSAGE} from './constants'; const { - ReactElement, - ReactTestComponent, AsymmetricMatcher, HTMLElement, Immutable, + ReactElement, + ReactTestComponent, } = prettyFormat.plugins; const PLUGINS = [ ReactTestComponent, ReactElement, - AsymmetricMatcher, HTMLElement, + AsymmetricMatcher, ].concat(Immutable); const FORMAT_OPTIONS = { plugins: PLUGINS, diff --git a/packages/jest-matcher-utils/src/index.js b/packages/jest-matcher-utils/src/index.js index 01ad33d4c29a..effc9421b0a0 100644 --- a/packages/jest-matcher-utils/src/index.js +++ b/packages/jest-matcher-utils/src/index.js @@ -13,14 +13,18 @@ import getType from 'jest-get-type'; import prettyFormat from 'pretty-format'; const { AsymmetricMatcher, - ReactElement, HTMLElement, Immutable, + ReactElement, + ReactTestComponent, } = prettyFormat.plugins; -const PLUGINS = [AsymmetricMatcher, ReactElement, HTMLElement].concat( - Immutable, -); +const PLUGINS = [ + ReactTestComponent, + ReactElement, + HTMLElement, + AsymmetricMatcher, +].concat(Immutable); const EXPECTED_COLOR = chalk.green; const EXPECTED_BG = chalk.bgGreen;