diff --git a/docs/JestPlatform.md b/docs/JestPlatform.md index 47b7140a732e..648acb758943 100644 --- a/docs/JestPlatform.md +++ b/docs/JestPlatform.md @@ -32,7 +32,7 @@ Tool for visualizing changes in data. Exports a function that compares two value ### Example ```javascript -const diff = require('jest-diff'); +const diff = require('jest-diff').default; const a = {a: {b: {c: 5}}}; const b = {a: {b: {c: 6}}}; @@ -58,7 +58,7 @@ const code = ` * * @flow */ - + console.log('Hello World!'); `;