@sprucelabs/test 7.7.315 → 7.7.318

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.
@@ -4,7 +4,7 @@ export declare const FUNCTION_PLACEHOLDER = "_____________function_____________"
4
4
  export declare const CIRCULAR_PLACEHOLDER = "_____________circular_____________";
5
5
  export declare const NULL_PLACEHOLDER = "_____________null_____________";
6
6
  declare const assertUtil: {
7
- fail(message?: string | undefined, stack?: string | undefined): never;
7
+ fail(message?: string, stack?: string): never;
8
8
  stringify(object: any): string;
9
9
  replacePlaceholders(str: string): string;
10
10
  dropInPlaceholders(obj: Record<string, any>): Record<string, any>;
@@ -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)}\n\nbut got back:\n\n\`${chalk.bold(message)}\`.`, '\n\nStack: ' + err.stack);
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);
@@ -4,7 +4,7 @@ export declare const FUNCTION_PLACEHOLDER = "_____________function_____________"
4
4
  export declare const CIRCULAR_PLACEHOLDER = "_____________circular_____________";
5
5
  export declare const NULL_PLACEHOLDER = "_____________null_____________";
6
6
  declare const assertUtil: {
7
- fail(message?: string | undefined, stack?: string | undefined): never;
7
+ fail(message?: string, stack?: string): never;
8
8
  stringify(object: any): string;
9
9
  replacePlaceholders(str: string): string;
10
10
  dropInPlaceholders(obj: Record<string, any>): Record<string, any>;
@@ -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)}\n\nbut got back:\n\n\`${chalk_1.default.bold(message)}\`.`, '\n\nStack: ' + err.stack);
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.315",
6
+ "version": "7.7.318",
7
7
  "skill": {
8
8
  "namespace": "spruce-test",
9
9
  "upgradeIgnoreList": [
@@ -75,7 +75,7 @@
75
75
  "lodash": "^4.17.21",
76
76
  "ts-expect": "^1.3.0",
77
77
  "ts-jest": "next",
78
- "typescript": "^4.6.4",
78
+ "typescript": "^4.7.2",
79
79
  "variable-diff": "^2.0.2"
80
80
  },
81
81
  "devDependencies": {
@@ -84,7 +84,7 @@
84
84
  "@types/deep-equal": "^1.0.1",
85
85
  "@types/jest": "^27.5.1",
86
86
  "@types/lodash": "^4.14.182",
87
- "eslint": "^8.15.0",
87
+ "eslint": "^8.16.0",
88
88
  "eslint-config-spruce": "^10.11.2",
89
89
  "prettier": "^2.6.2",
90
90
  "tsc-watch": "^5.0.3",