From 48bdc884c609b2d8d4b3fe669d5ffcc225738203 Mon Sep 17 00:00:00 2001 From: Chris Bobbe Date: Wed, 25 Nov 2020 15:59:55 -0500 Subject: [PATCH] jest libdef: Add `.toIncludeSameMembers`. Added in jest-community/jest-extended#122. --- flow-typed/jest_v26.x.x.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/flow-typed/jest_v26.x.x.js b/flow-typed/jest_v26.x.x.js index 51be63fe47d..20876ccf00b 100644 --- a/flow-typed/jest_v26.x.x.js +++ b/flow-typed/jest_v26.x.x.js @@ -332,6 +332,11 @@ type JestExtendedMatchersType = { * @param {Array.<*>} members */ toIncludeAnyMembers(members: any[]): void, + /** + * Use `.toIncludeSameMembers` when checking if two arrays contain equal values, in any order. + * @param {Array.<*>} members + */ + toIncludeSameMembers(members: any[]): void, /** * Use `.toSatisfyAll` when you want to use a custom matcher by supplying a predicate function that returns a `Boolean` for all values in an array. * @param {Function} predicate