deprecation(expect): rename addSnapshotSerializers to addSnapshotSerializer (#4582)

This commit is contained in:
Yuki Tanaka 2024-04-15 15:39:02 +09:00 committed by GitHub
parent e4fbab08d1
commit e299c8b689
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;