@jest/expect-utils 28.1.0 → 29.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/jasmineUtils.js +18 -0
- package/build/utils.js +5 -1
- package/package.json +5 -5
package/build/jasmineUtils.js
CHANGED
@@ -6,6 +6,8 @@ Object.defineProperty(exports, '__esModule', {
|
|
6
6
|
exports.equals = void 0;
|
7
7
|
exports.isA = isA;
|
8
8
|
exports.isImmutableList = isImmutableList;
|
9
|
+
exports.isImmutableOrderedKeyed = isImmutableOrderedKeyed;
|
10
|
+
exports.isImmutableOrderedSet = isImmutableOrderedSet;
|
9
11
|
exports.isImmutableUnorderedKeyed = isImmutableUnorderedKeyed;
|
10
12
|
exports.isImmutableUnorderedSet = isImmutableUnorderedSet;
|
11
13
|
|
@@ -262,3 +264,19 @@ function isImmutableUnorderedSet(maybeSet) {
|
|
262
264
|
function isImmutableList(maybeList) {
|
263
265
|
return !!(maybeList && maybeList[IS_LIST_SENTINEL]);
|
264
266
|
}
|
267
|
+
|
268
|
+
function isImmutableOrderedKeyed(maybeKeyed) {
|
269
|
+
return !!(
|
270
|
+
maybeKeyed &&
|
271
|
+
maybeKeyed[IS_KEYED_SENTINEL] &&
|
272
|
+
maybeKeyed[IS_ORDERED_SENTINEL]
|
273
|
+
);
|
274
|
+
}
|
275
|
+
|
276
|
+
function isImmutableOrderedSet(maybeSet) {
|
277
|
+
return !!(
|
278
|
+
maybeSet &&
|
279
|
+
maybeSet[IS_SET_SENTINEL] &&
|
280
|
+
maybeSet[IS_ORDERED_SENTINEL]
|
281
|
+
);
|
282
|
+
}
|
package/build/utils.js
CHANGED
@@ -278,7 +278,11 @@ const iterableEquality = (
|
|
278
278
|
return false;
|
279
279
|
}
|
280
280
|
|
281
|
-
if (
|
281
|
+
if (
|
282
|
+
!(0, _jasmineUtils.isImmutableList)(a) &&
|
283
|
+
!(0, _jasmineUtils.isImmutableOrderedKeyed)(a) &&
|
284
|
+
!(0, _jasmineUtils.isImmutableOrderedSet)(a)
|
285
|
+
) {
|
282
286
|
const aEntries = Object.entries(a);
|
283
287
|
const bEntries = Object.entries(b);
|
284
288
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@jest/expect-utils",
|
3
|
-
"version": "
|
3
|
+
"version": "29.0.0-alpha.0",
|
4
4
|
"repository": {
|
5
5
|
"type": "git",
|
6
6
|
"url": "https://github.com/facebook/jest.git",
|
@@ -17,17 +17,17 @@
|
|
17
17
|
"./package.json": "./package.json"
|
18
18
|
},
|
19
19
|
"dependencies": {
|
20
|
-
"jest-get-type": "^
|
20
|
+
"jest-get-type": "^29.0.0-alpha.0"
|
21
21
|
},
|
22
22
|
"devDependencies": {
|
23
23
|
"immutable": "^4.0.0",
|
24
|
-
"jest-matcher-utils": "^
|
24
|
+
"jest-matcher-utils": "^29.0.0-alpha.0"
|
25
25
|
},
|
26
26
|
"engines": {
|
27
|
-
"node": "^
|
27
|
+
"node": "^14.15.0 || ^16.10.0 || >=18.0.0"
|
28
28
|
},
|
29
29
|
"publishConfig": {
|
30
30
|
"access": "public"
|
31
31
|
},
|
32
|
-
"gitHead": "
|
32
|
+
"gitHead": "6862afb00307b52f32eedee977a9b3041355f184"
|
33
33
|
}
|