@jest/expect-utils 29.6.1 → 29.6.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.
package/build/index.d.ts CHANGED
@@ -20,6 +20,8 @@ export declare type EqualsFunction = (
20
20
  strictCheck?: boolean,
21
21
  ) => boolean;
22
22
 
23
+ export declare const getObjectKeys: (object: object) => Array<string | symbol>;
24
+
23
25
  export declare const getObjectSubset: (
24
26
  object: any,
25
27
  subset: any,
package/build/utils.js CHANGED
@@ -15,6 +15,7 @@ exports.typeEquality =
15
15
  exports.isError =
16
16
  exports.getPath =
17
17
  exports.getObjectSubset =
18
+ exports.getObjectKeys =
18
19
  void 0;
19
20
  var _jestGetType = require('jest-get-type');
20
21
  var _immutableUtils = require('./immutableUtils');
@@ -50,6 +51,7 @@ const getObjectKeys = object => [
50
51
  ...Object.keys(object),
51
52
  ...Object.getOwnPropertySymbols(object)
52
53
  ];
54
+ exports.getObjectKeys = getObjectKeys;
53
55
  const getPath = (object, propertyPath) => {
54
56
  if (!Array.isArray(propertyPath)) {
55
57
  propertyPath = pathAsArray(propertyPath);
@@ -362,7 +364,7 @@ const typeEquality = (a, b) => {
362
364
  // Since Jest globals are different from Node globals,
363
365
  // constructors are different even between arrays when comparing properties of mock objects.
364
366
  // Both of them should be able to compare correctly when they are array-to-array.
365
- // https://github.com/facebook/jest/issues/2549
367
+ // https://github.com/jestjs/jest/issues/2549
366
368
  (Array.isArray(a) && Array.isArray(b))
367
369
  ) {
368
370
  return undefined;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@jest/expect-utils",
3
- "version": "29.6.1",
3
+ "version": "29.6.3",
4
4
  "repository": {
5
5
  "type": "git",
6
- "url": "https://github.com/facebook/jest.git",
6
+ "url": "https://github.com/jestjs/jest.git",
7
7
  "directory": "packages/expect-utils"
8
8
  },
9
9
  "license": "MIT",
@@ -17,12 +17,12 @@
17
17
  "./package.json": "./package.json"
18
18
  },
19
19
  "dependencies": {
20
- "jest-get-type": "^29.4.3"
20
+ "jest-get-type": "^29.6.3"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@tsd/typescript": "^5.0.4",
24
24
  "immutable": "^4.0.0",
25
- "jest-matcher-utils": "^29.6.1",
25
+ "jest-matcher-utils": "^29.6.3",
26
26
  "tsd-lite": "^0.7.0"
27
27
  },
28
28
  "engines": {
@@ -31,5 +31,5 @@
31
31
  "publishConfig": {
32
32
  "access": "public"
33
33
  },
34
- "gitHead": "1f019afdcdfc54a6664908bb45f343db4e3d0848"
34
+ "gitHead": "fb7d95c8af6e0d65a8b65348433d8a0ea0725b5b"
35
35
  }