@sprucelabs/test-utils 6.0.101 → 6.0.103
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/assert/assert.js
CHANGED
@@ -19,6 +19,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
20
20
|
const chalk_1 = __importDefault(require("chalk"));
|
21
21
|
const deep_equal_1 = __importDefault(require("deep-equal"));
|
22
|
+
const jest_matcher_utils_1 = require("jest-matcher-utils");
|
22
23
|
const lodash_1 = require("lodash");
|
23
24
|
const escapeRegExp_1 = __importDefault(require("lodash/escapeRegExp"));
|
24
25
|
const isObjectLike_1 = __importDefault(require("lodash/isObjectLike"));
|
@@ -39,7 +40,8 @@ const assert = {
|
|
39
40
|
},
|
40
41
|
isEqual(actual, expected, message) {
|
41
42
|
if (actual !== expected) {
|
42
|
-
|
43
|
+
const diff = (0, jest_matcher_utils_1.printDiffOrStringify)(actual, expected, 'Expected', 'Actual', false);
|
44
|
+
this.fail(buildErrorMessage(`${diff}`, message));
|
43
45
|
}
|
44
46
|
},
|
45
47
|
isNotEqual(actual, expected, message) {
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import chalk from 'chalk';
|
2
2
|
import deepEqual from 'deep-equal';
|
3
|
+
import { printDiffOrStringify } from 'jest-matcher-utils';
|
3
4
|
import { cloneDeep, set } from 'lodash';
|
4
5
|
import escapeRegExp from 'lodash/escapeRegExp.js';
|
5
6
|
import isObjectLike from 'lodash/isObjectLike.js';
|
@@ -20,7 +21,8 @@ const assert = {
|
|
20
21
|
},
|
21
22
|
isEqual(actual, expected, message) {
|
22
23
|
if (actual !== expected) {
|
23
|
-
|
24
|
+
const diff = printDiffOrStringify(actual, expected, 'Expected', 'Actual', false);
|
25
|
+
this.fail(buildErrorMessage(`${diff}`, message));
|
24
26
|
}
|
25
27
|
},
|
26
28
|
isNotEqual(actual, expected, message) {
|
package/package.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
"publishConfig": {
|
4
4
|
"access": "public"
|
5
5
|
},
|
6
|
-
"version": "6.0.
|
6
|
+
"version": "6.0.103",
|
7
7
|
"files": [
|
8
8
|
"build"
|
9
9
|
],
|
@@ -60,16 +60,17 @@
|
|
60
60
|
"watch.tsc": "tsc -w"
|
61
61
|
},
|
62
62
|
"dependencies": {
|
63
|
-
"@sprucelabs/error": "^7.1.
|
63
|
+
"@sprucelabs/error": "^7.1.32",
|
64
64
|
"deep-equal": "^2.2.3",
|
65
|
+
"jest-matcher-utils": "^30.2.0",
|
65
66
|
"just-clone": "^6.2.0",
|
66
67
|
"lodash": "^4.17.21",
|
67
68
|
"ts-expect": "^1.3.0",
|
68
69
|
"variable-diff": "^2.0.2"
|
69
70
|
},
|
70
71
|
"devDependencies": {
|
71
|
-
"@sprucelabs/esm-postbuild": "^7.0.
|
72
|
-
"@sprucelabs/jest-json-reporter": "^9.0.
|
72
|
+
"@sprucelabs/esm-postbuild": "^7.0.44",
|
73
|
+
"@sprucelabs/jest-json-reporter": "^9.0.65",
|
73
74
|
"@sprucelabs/jest-sheets-reporter": "^2.0.20",
|
74
75
|
"@sprucelabs/semantic-release": "^5.0.2",
|
75
76
|
"@sprucelabs/test": "^10.0.24",
|