Skip to content

Commit

Permalink
chore: remove cyclic dev dep on jest-diff from pretty-format
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Feb 8, 2019
1 parent cd77749 commit 080998e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/pretty-format/package.json
Expand Up @@ -22,7 +22,6 @@
"@types/react": "*",
"@types/react-test-renderer": "*",
"immutable": "4.0.0-rc.9",
"jest-diff": "^24.0.0",
"react": "*",
"react-dom": "*",
"react-test-renderer": "*"
Expand Down
6 changes: 2 additions & 4 deletions packages/pretty-format/src/__tests__/setPrettyPrint.ts
Expand Up @@ -5,9 +5,6 @@
* LICENSE file in the root directory of this source tree.
*/

// @ts-ignore
import diff from 'jest-diff';

import prettyFormat from '../';
import {OptionsReceived, Plugins} from '../types';

Expand All @@ -34,7 +31,8 @@ const setPrettyPrint = (plugins: Plugins) => {
`Received:\n` +
` ${this.utils.printReceived(prettyFormatted)}`
: () => {
const diffString = diff(expected, prettyFormatted, {
// @ts-ignore: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/32891
const diffString = this.utils.diff(expected, prettyFormatted, {
expand: this.expand,
});
return (
Expand Down

0 comments on commit 080998e

Please sign in to comment.