From ca7c82bf06047ed51b383f3e2e1fd332fd3f301a Mon Sep 17 00:00:00 2001 From: uki00a Date: Sun, 14 Apr 2024 18:11:24 +0900 Subject: [PATCH] deprecation(expect): rename `addSnapshotSerializers` to `addSnapshotSerializer` --- expect/expect.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/expect/expect.ts b/expect/expect.ts index 3abba7cdaf1d..1453701aab47 100644 --- a/expect/expect.ts +++ b/expect/expect.ts @@ -199,7 +199,11 @@ export function expect(value: unknown, customMessage?: string): Expected { } expect.addEqualityTesters = addCustomEqualityTesters; +/** + * @deprecated (will be removed in 0.226.0) Use {@linkcode expect.addSnapshotSerializer} instead. + */ expect.addSnapshotSerializers = addSerializer; +expect.addSnapshotSerializer = addSerializer; expect.extend = setExtendMatchers; expect.anything = anything;