@wordpress/jest-console 8.36.1-next.8fd3f8831.0 → 8.37.1-next.79a2f3cdd.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/LICENSE.md +1 -1
- package/build/index.cjs +1 -1
- package/build/matchers.cjs +1 -1
- package/build-module/declarations.d.mjs +1 -0
- package/build-module/{index.js → index.mjs} +3 -3
- package/build-module/{matchers.js → matchers.mjs} +2 -2
- package/build-module/{supported-matchers.js → supported-matchers.mjs} +1 -1
- package/build-module/types.mjs +1 -0
- package/package.json +4 -5
- package/build-module/declarations.d.js +0 -1
- package/build-module/types.js +0 -1
- /package/build-module/{declarations.d.js.map → declarations.d.mjs.map} +0 -0
- /package/build-module/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/{matchers.js.map → matchers.mjs.map} +0 -0
- /package/build-module/{supported-matchers.js.map → supported-matchers.mjs.map} +0 -0
- /package/build-module/{types.js.map → types.mjs.map} +0 -0
package/LICENSE.md
CHANGED
package/build/index.cjs
CHANGED
|
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
|
|
25
25
|
// packages/jest-console/src/index.ts
|
|
26
26
|
var import_matchers = require("./matchers.cjs");
|
|
27
|
-
var import_supported_matchers = __toESM(require("./supported-matchers.cjs")
|
|
27
|
+
var import_supported_matchers = __toESM(require("./supported-matchers.cjs"));
|
|
28
28
|
var setConsoleMethodSpy = (args) => {
|
|
29
29
|
const [methodName, matcherName] = args;
|
|
30
30
|
const spy = jest.spyOn(console, methodName).mockName(`console.${methodName}`);
|
package/build/matchers.cjs
CHANGED
|
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
24
24
|
|
|
25
25
|
// packages/jest-console/src/matchers.ts
|
|
26
26
|
var import_jest_matcher_utils = require("jest-matcher-utils");
|
|
27
|
-
var import_supported_matchers = __toESM(require("./supported-matchers.cjs")
|
|
27
|
+
var import_supported_matchers = __toESM(require("./supported-matchers.cjs"));
|
|
28
28
|
var createErrorMessage = (spyInfo) => {
|
|
29
29
|
const { spy, pass, calls, matcherName, methodName, expected } = spyInfo;
|
|
30
30
|
const hint = pass ? `.not${matcherName}` : matcherName;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=declarations.d.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// packages/jest-console/src/index.ts
|
|
2
|
-
import "./matchers.
|
|
3
|
-
import supportedMatchers from "./supported-matchers.
|
|
2
|
+
import "./matchers.mjs";
|
|
3
|
+
import supportedMatchers from "./supported-matchers.mjs";
|
|
4
4
|
var setConsoleMethodSpy = (args) => {
|
|
5
5
|
const [methodName, matcherName] = args;
|
|
6
6
|
const spy = jest.spyOn(console, methodName).mockName(`console.${methodName}`);
|
|
@@ -21,4 +21,4 @@ var setConsoleMethodSpy = (args) => {
|
|
|
21
21
|
afterEach(assertExpectedCalls);
|
|
22
22
|
};
|
|
23
23
|
Object.entries(supportedMatchers).forEach(setConsoleMethodSpy);
|
|
24
|
-
//# sourceMappingURL=index.
|
|
24
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// packages/jest-console/src/matchers.ts
|
|
2
2
|
import { matcherHint, printExpected, printReceived } from "jest-matcher-utils";
|
|
3
|
-
import supportedMatchers from "./supported-matchers.
|
|
3
|
+
import supportedMatchers from "./supported-matchers.mjs";
|
|
4
4
|
var createErrorMessage = (spyInfo) => {
|
|
5
5
|
const { spy, pass, calls, matcherName, methodName, expected } = spyInfo;
|
|
6
6
|
const hint = pass ? `.not${matcherName}` : matcherName;
|
|
@@ -66,4 +66,4 @@ expect.extend(
|
|
|
66
66
|
{}
|
|
67
67
|
)
|
|
68
68
|
);
|
|
69
|
-
//# sourceMappingURL=matchers.
|
|
69
|
+
//# sourceMappingURL=matchers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=types.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/jest-console",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.37.1-next.79a2f3cdd.0",
|
|
4
4
|
"description": "Custom Jest matchers for the Console object.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -30,13 +30,12 @@
|
|
|
30
30
|
"build-module",
|
|
31
31
|
"build-types"
|
|
32
32
|
],
|
|
33
|
-
"type": "module",
|
|
34
33
|
"main": "build/index.cjs",
|
|
35
|
-
"module": "build-module/index.
|
|
34
|
+
"module": "build-module/index.mjs",
|
|
36
35
|
"exports": {
|
|
37
36
|
".": {
|
|
38
37
|
"types": "./build-types/index.d.ts",
|
|
39
|
-
"import": "./build-module/index.
|
|
38
|
+
"import": "./build-module/index.mjs",
|
|
40
39
|
"require": "./build/index.cjs"
|
|
41
40
|
},
|
|
42
41
|
"./package.json": "./package.json"
|
|
@@ -51,5 +50,5 @@
|
|
|
51
50
|
"publishConfig": {
|
|
52
51
|
"access": "public"
|
|
53
52
|
},
|
|
54
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "6a324496a37d9a333a11d4d7fe5fb93b8152a5ba"
|
|
55
54
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=declarations.d.js.map
|
package/build-module/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=types.js.map
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|