From 81712ba847c7a886d58d890e181b4036b2a9d398 Mon Sep 17 00:00:00 2001 From: Tunde Thomas <4913483+tundethomas@users.noreply.github.com> Date: Thu, 21 May 2020 08:10:00 -0400 Subject: [PATCH] docs: fix jest-diff example (#10067) --- docs/JestPlatform.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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!'); `;