@jest/expect-utils 28.1.3 → 29.0.0-alpha.3

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.
@@ -8,6 +8,7 @@ exports.isA = isA;
8
8
  exports.isImmutableList = isImmutableList;
9
9
  exports.isImmutableOrderedKeyed = isImmutableOrderedKeyed;
10
10
  exports.isImmutableOrderedSet = isImmutableOrderedSet;
11
+ exports.isImmutableRecord = isImmutableRecord;
11
12
  exports.isImmutableUnorderedKeyed = isImmutableUnorderedKeyed;
12
13
  exports.isImmutableUnorderedSet = isImmutableUnorderedSet;
13
14
 
@@ -244,6 +245,7 @@ const IS_KEYED_SENTINEL = '@@__IMMUTABLE_KEYED__@@';
244
245
  const IS_SET_SENTINEL = '@@__IMMUTABLE_SET__@@';
245
246
  const IS_LIST_SENTINEL = '@@__IMMUTABLE_LIST__@@';
246
247
  const IS_ORDERED_SENTINEL = '@@__IMMUTABLE_ORDERED__@@';
248
+ const IS_RECORD_SYMBOL = '@@__IMMUTABLE_RECORD__@@';
247
249
 
248
250
  function isImmutableUnorderedKeyed(maybeKeyed) {
249
251
  return !!(
@@ -280,3 +282,7 @@ function isImmutableOrderedSet(maybeSet) {
280
282
  maybeSet[IS_ORDERED_SENTINEL]
281
283
  );
282
284
  }
285
+
286
+ function isImmutableRecord(maybeSet) {
287
+ return !!(maybeSet && maybeSet[IS_RECORD_SYMBOL]);
288
+ }
package/build/utils.js CHANGED
@@ -281,7 +281,8 @@ const iterableEquality = (
281
281
  if (
282
282
  !(0, _jasmineUtils.isImmutableList)(a) &&
283
283
  !(0, _jasmineUtils.isImmutableOrderedKeyed)(a) &&
284
- !(0, _jasmineUtils.isImmutableOrderedSet)(a)
284
+ !(0, _jasmineUtils.isImmutableOrderedSet)(a) &&
285
+ !(0, _jasmineUtils.isImmutableRecord)(a)
285
286
  ) {
286
287
  const aEntries = Object.entries(a);
287
288
  const bEntries = Object.entries(b);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jest/expect-utils",
3
- "version": "28.1.3",
3
+ "version": "29.0.0-alpha.3",
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": "^28.0.2"
20
+ "jest-get-type": "^29.0.0-alpha.3"
21
21
  },
22
22
  "devDependencies": {
23
23
  "immutable": "^4.0.0",
24
- "jest-matcher-utils": "^28.1.3"
24
+ "jest-matcher-utils": "^29.0.0-alpha.3"
25
25
  },
26
26
  "engines": {
27
- "node": "^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0"
27
+ "node": "^14.15.0 || ^16.10.0 || >=18.0.0"
28
28
  },
29
29
  "publishConfig": {
30
30
  "access": "public"
31
31
  },
32
- "gitHead": "2cce069800dab3fc8ca7c469b32d2e2b2f7e2bb1"
32
+ "gitHead": "09981873c55442e5e494d42012f518b7d3d41fbd"
33
33
  }