@sprucelabs/test 7.7.312 → 7.7.315
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.
|
@@ -106,7 +106,7 @@ const assertUtil = {
|
|
|
106
106
|
var _a, _b;
|
|
107
107
|
const message = (_b = (_a = err.stack) !== null && _a !== void 0 ? _a : err.message) !== null && _b !== void 0 ? _b : '**MISSING ERROR MESSAGE**';
|
|
108
108
|
if (typeof matcher === 'string' && message.search(matcher) === -1) {
|
|
109
|
-
this.fail(msg !== null && msg !== void 0 ? msg : `Expected thrown error whose message contains: \n\n'${chalk.bold(matcher)}
|
|
109
|
+
this.fail(msg !== null && msg !== void 0 ? msg : `Expected thrown error whose message contains: \n\n'${chalk.bold(matcher)}\n\nbut got back:\n\n\`${chalk.bold(message)}\`.`, '\n\nStack: ' + err.stack);
|
|
110
110
|
}
|
|
111
111
|
else if (matcher instanceof RegExp && message.search(matcher) === -1) {
|
|
112
112
|
this.fail(msg !== null && msg !== void 0 ? msg : `Expected thrown error whose message matches the regex: \n\n${chalk.bold(matcher)}\n\nbut got back:\n\n\`${chalk.bold(message)}\`.`, '\n\nStack: ' + err.stack);
|
|
@@ -112,7 +112,7 @@ const assertUtil = {
|
|
|
112
112
|
var _a, _b;
|
|
113
113
|
const message = (_b = (_a = err.stack) !== null && _a !== void 0 ? _a : err.message) !== null && _b !== void 0 ? _b : '**MISSING ERROR MESSAGE**';
|
|
114
114
|
if (typeof matcher === 'string' && message.search(matcher) === -1) {
|
|
115
|
-
this.fail(msg !== null && msg !== void 0 ? msg : `Expected thrown error whose message contains: \n\n'${chalk_1.default.bold(matcher)}
|
|
115
|
+
this.fail(msg !== null && msg !== void 0 ? msg : `Expected thrown error whose message contains: \n\n'${chalk_1.default.bold(matcher)}\n\nbut got back:\n\n\`${chalk_1.default.bold(message)}\`.`, '\n\nStack: ' + err.stack);
|
|
116
116
|
}
|
|
117
117
|
else if (matcher instanceof RegExp && message.search(matcher) === -1) {
|
|
118
118
|
this.fail(msg !== null && msg !== void 0 ? msg : `Expected thrown error whose message matches the regex: \n\n${chalk_1.default.bold(matcher)}\n\nbut got back:\n\n\`${chalk_1.default.bold(message)}\`.`, '\n\nStack: ' + err.stack);
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "7.7.
|
|
6
|
+
"version": "7.7.315",
|
|
7
7
|
"skill": {
|
|
8
8
|
"namespace": "spruce-test",
|
|
9
9
|
"upgradeIgnoreList": [
|
|
@@ -82,9 +82,9 @@
|
|
|
82
82
|
"@sprucelabs/esm-postbuild": "^1.0.304",
|
|
83
83
|
"@sprucelabs/semantic-release": "^4.0.8",
|
|
84
84
|
"@types/deep-equal": "^1.0.1",
|
|
85
|
-
"@types/jest": "^27.5.
|
|
85
|
+
"@types/jest": "^27.5.1",
|
|
86
86
|
"@types/lodash": "^4.14.182",
|
|
87
|
-
"eslint": "^8.
|
|
87
|
+
"eslint": "^8.15.0",
|
|
88
88
|
"eslint-config-spruce": "^10.11.2",
|
|
89
89
|
"prettier": "^2.6.2",
|
|
90
90
|
"tsc-watch": "^5.0.3",
|