From f3f4753764fa10b6103a8a1ca3e2eeba5d41294c Mon Sep 17 00:00:00 2001 From: william-lai-927 <131758040+william-lai-927@users.noreply.github.com> Date: Fri, 2 Jun 2023 16:16:13 +0100 Subject: [PATCH] Update Snapshot Object format Snapshot format has been updated : https://jestjs.io/docs/configuration#snapshotformat-object --- website/versioned_docs/version-29.5/SnapshotTesting.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/versioned_docs/version-29.5/SnapshotTesting.md b/website/versioned_docs/version-29.5/SnapshotTesting.md index dfbe33c25995..2fcef23b1579 100644 --- a/website/versioned_docs/version-29.5/SnapshotTesting.md +++ b/website/versioned_docs/version-29.5/SnapshotTesting.md @@ -160,7 +160,7 @@ it('will fail every time', () => { // Snapshot exports[`will fail every time 1`] = ` -Object { +{ "createdAt": 2018-05-19T23:36:09.816Z, "id": 3, "name": "LeBron James", @@ -186,7 +186,7 @@ it('will check the matchers and pass', () => { // Snapshot exports[`will check the matchers and pass 1`] = ` -Object { +{ "createdAt": Any, "id": Any, "name": "LeBron James", @@ -211,7 +211,7 @@ it('will check the values and pass', () => { // Snapshot exports[`will check the values and pass 1`] = ` -Object { +{ "createdAt": Any, "name": 'Bond... James Bond', }