@sprucelabs/test 7.7.359 → 7.7.361

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.
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated delete and re-import from @sprucelabs/test-utils
3
+ */
1
4
  export default class AssertionError extends Error {
2
5
  constructor(message: string, stack?: string);
3
6
  }
@@ -4,6 +4,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const StackCleaner_1 = __importDefault(require("./StackCleaner"));
7
+ /**
8
+ * @deprecated delete and re-import from @sprucelabs/test-utils
9
+ */
7
10
  class AssertionError extends Error {
8
11
  constructor(message, stack) {
9
12
  var _a;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated delete and re-import from @sprucelabs/test-utils
3
+ */
1
4
  export default class StackCleaner {
2
5
  private static matchPattern;
3
6
  static clean(stack: string): string;
@@ -1,5 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ /**
4
+ * @deprecated delete and re-import from @sprucelabs/test-utils
5
+ */
3
6
  class StackCleaner {
4
7
  static clean(stack) {
5
8
  const lines = stack.split(/\r?\n/);
package/build/assert.d.ts CHANGED
@@ -40,5 +40,8 @@ export interface ISpruceAssert {
40
40
  doesThrowAsync(cb: () => any | Promise<any>, matcher?: string | RegExp | undefined, msg?: string | undefined): Promise<Error>;
41
41
  fail(message?: string): void;
42
42
  }
43
+ /**
44
+ * @deprecated delete and re-import from @sprucelabs/test-utils
45
+ */
43
46
  declare const spruceAssert: ISpruceAssert;
44
47
  export default spruceAssert;
package/build/assert.js CHANGED
@@ -12,6 +12,9 @@ const variable_diff_1 = __importDefault(require("variable-diff"));
12
12
  const assert_utility_1 = __importDefault(require("./utilities/assert.utility"));
13
13
  const stringify = assert_utility_1.default.stringify.bind(assert_utility_1.default);
14
14
  function isExactType(_) { }
15
+ /**
16
+ * @deprecated delete and re-import from @sprucelabs/test-utils
17
+ */
15
18
  const spruceAssert = {
16
19
  areSameType() { },
17
20
  isType: ts_expect_1.expectType,
@@ -1,4 +1,6 @@
1
- /** Test decorator */
1
+ /**
2
+ * @deprecated delete and re-import from @sprucelabs/test-utils
3
+ */
2
4
  declare function test(description?: string, ...args: any[]): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
3
5
  declare namespace test {
4
6
  var only: (description?: string | undefined, ...args: any[]) => (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
@@ -21,7 +21,9 @@ function hookupTestClass(target) {
21
21
  }
22
22
  });
23
23
  }
24
- /** Test decorator */
24
+ /**
25
+ * @deprecated delete and re-import from @sprucelabs/test-utils
26
+ */
25
27
  function test(description, ...args) {
26
28
  return function (target, propertyKey, descriptor) {
27
29
  // Lets attach before/after
@@ -39,7 +41,9 @@ function test(description, ...args) {
39
41
  };
40
42
  }
41
43
  exports.default = test;
42
- /** Only decorator */
44
+ /**
45
+ * @deprecated delete and re-import from @sprucelabs/test-utils
46
+ */
43
47
  test.only = (description, ...args) => {
44
48
  return function (target, propertyKey, descriptor) {
45
49
  // Lets attach before/after
@@ -51,7 +55,9 @@ test.only = (description, ...args) => {
51
55
  });
52
56
  };
53
57
  };
54
- /** Todo decorator */
58
+ /**
59
+ * @deprecated delete and re-import from @sprucelabs/test-utils
60
+ */
55
61
  test.todo = (description, ..._args) => {
56
62
  return function (target, propertyKey) {
57
63
  // Lets attach before/after
@@ -60,7 +66,9 @@ test.todo = (description, ..._args) => {
60
66
  it.todo(description !== null && description !== void 0 ? description : propertyKey);
61
67
  };
62
68
  };
63
- /** Skip decorator */
69
+ /**
70
+ * @deprecated delete and re-import from @sprucelabs/test-utils
71
+ */
64
72
  test.skip = (description, ...args) => {
65
73
  return function (target, propertyKey, descriptor) {
66
74
  // Lets attach before/after
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated delete and re-import from @sprucelabs/test-utils
3
+ */
1
4
  export default class AssertionError extends Error {
2
5
  constructor(message: string, stack?: string);
3
6
  }
@@ -1,4 +1,7 @@
1
1
  import StackCleaner from './StackCleaner.js';
2
+ /**
3
+ * @deprecated delete and re-import from @sprucelabs/test-utils
4
+ */
2
5
  export default class AssertionError extends Error {
3
6
  constructor(message, stack) {
4
7
  var _a;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated delete and re-import from @sprucelabs/test-utils
3
+ */
1
4
  export default class StackCleaner {
2
5
  private static matchPattern;
3
6
  static clean(stack: string): string;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated delete and re-import from @sprucelabs/test-utils
3
+ */
1
4
  export default class StackCleaner {
2
5
  static clean(stack) {
3
6
  const lines = stack.split(/\r?\n/);
@@ -40,5 +40,8 @@ export interface ISpruceAssert {
40
40
  doesThrowAsync(cb: () => any | Promise<any>, matcher?: string | RegExp | undefined, msg?: string | undefined): Promise<Error>;
41
41
  fail(message?: string): void;
42
42
  }
43
+ /**
44
+ * @deprecated delete and re-import from @sprucelabs/test-utils
45
+ */
43
46
  declare const spruceAssert: ISpruceAssert;
44
47
  export default spruceAssert;
@@ -16,6 +16,9 @@ import diff from 'variable-diff';
16
16
  import assertUtil from './utilities/assert.utility.js';
17
17
  const stringify = assertUtil.stringify.bind(assertUtil);
18
18
  function isExactType(_) { }
19
+ /**
20
+ * @deprecated delete and re-import from @sprucelabs/test-utils
21
+ */
19
22
  const spruceAssert = {
20
23
  areSameType() { },
21
24
  isType: expectType,
@@ -1,4 +1,6 @@
1
- /** Test decorator */
1
+ /**
2
+ * @deprecated delete and re-import from @sprucelabs/test-utils
3
+ */
2
4
  declare function test(description?: string, ...args: any[]): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
3
5
  declare namespace test {
4
6
  var only: (description?: string | undefined, ...args: any[]) => (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
@@ -28,7 +28,9 @@ function hookupTestClass(target) {
28
28
  }
29
29
  });
30
30
  }
31
- /** Test decorator */
31
+ /**
32
+ * @deprecated delete and re-import from @sprucelabs/test-utils
33
+ */
32
34
  export default function test(description, ...args) {
33
35
  return function (target, propertyKey, descriptor) {
34
36
  // Lets attach before/after
@@ -45,7 +47,9 @@ export default function test(description, ...args) {
45
47
  }));
46
48
  };
47
49
  }
48
- /** Only decorator */
50
+ /**
51
+ * @deprecated delete and re-import from @sprucelabs/test-utils
52
+ */
49
53
  test.only = (description, ...args) => {
50
54
  return function (target, propertyKey, descriptor) {
51
55
  // Lets attach before/after
@@ -57,7 +61,9 @@ test.only = (description, ...args) => {
57
61
  }));
58
62
  };
59
63
  };
60
- /** Todo decorator */
64
+ /**
65
+ * @deprecated delete and re-import from @sprucelabs/test-utils
66
+ */
61
67
  test.todo = (description, ..._args) => {
62
68
  return function (target, propertyKey) {
63
69
  // Lets attach before/after
@@ -66,7 +72,9 @@ test.todo = (description, ..._args) => {
66
72
  it.todo(description !== null && description !== void 0 ? description : propertyKey);
67
73
  };
68
74
  };
69
- /** Skip decorator */
75
+ /**
76
+ * @deprecated delete and re-import from @sprucelabs/test-utils
77
+ */
70
78
  test.skip = (description, ...args) => {
71
79
  return function (target, propertyKey, descriptor) {
72
80
  // Lets attach before/after
@@ -3,6 +3,9 @@ export declare const UNDEFINED_PLACEHOLDER = "_____________undefined____________
3
3
  export declare const FUNCTION_PLACEHOLDER = "_____________function_____________";
4
4
  export declare const CIRCULAR_PLACEHOLDER = "_____________circular_____________";
5
5
  export declare const NULL_PLACEHOLDER = "_____________null_____________";
6
+ /**
7
+ * @deprecated delete and re-import from @sprucelabs/test-utils
8
+ */
6
9
  declare const assertUtil: {
7
10
  fail(message?: string, stack?: string): never;
8
11
  stringify(object: any): string;
@@ -8,6 +8,9 @@ export const UNDEFINED_PLACEHOLDER = '_____________undefined_____________';
8
8
  export const FUNCTION_PLACEHOLDER = '_____________function_____________';
9
9
  export const CIRCULAR_PLACEHOLDER = '_____________circular_____________';
10
10
  export const NULL_PLACEHOLDER = '_____________null_____________';
11
+ /**
12
+ * @deprecated delete and re-import from @sprucelabs/test-utils
13
+ */
11
14
  const assertUtil = {
12
15
  fail(message, stack) {
13
16
  throw new AssertionError(message !== null && message !== void 0 ? message : 'Fail!', stack);
@@ -3,6 +3,9 @@ export declare const UNDEFINED_PLACEHOLDER = "_____________undefined____________
3
3
  export declare const FUNCTION_PLACEHOLDER = "_____________function_____________";
4
4
  export declare const CIRCULAR_PLACEHOLDER = "_____________circular_____________";
5
5
  export declare const NULL_PLACEHOLDER = "_____________null_____________";
6
+ /**
7
+ * @deprecated delete and re-import from @sprucelabs/test-utils
8
+ */
6
9
  declare const assertUtil: {
7
10
  fail(message?: string, stack?: string): never;
8
11
  stringify(object: any): string;
@@ -14,6 +14,9 @@ exports.UNDEFINED_PLACEHOLDER = '_____________undefined_____________';
14
14
  exports.FUNCTION_PLACEHOLDER = '_____________function_____________';
15
15
  exports.CIRCULAR_PLACEHOLDER = '_____________circular_____________';
16
16
  exports.NULL_PLACEHOLDER = '_____________null_____________';
17
+ /**
18
+ * @deprecated delete and re-import from @sprucelabs/test-utils
19
+ */
17
20
  const assertUtil = {
18
21
  fail(message, stack) {
19
22
  throw new AssertionError_1.default(message !== null && message !== void 0 ? message : 'Fail!', stack);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "7.7.359",
6
+ "version": "7.7.361",
7
7
  "skill": {
8
8
  "namespace": "spruce-test",
9
9
  "upgradeIgnoreList": [
@@ -82,7 +82,7 @@
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": "^29.0.1",
85
+ "@types/jest": "^29.0.2",
86
86
  "@types/lodash": "^4.14.185",
87
87
  "eslint": "^8.23.1",
88
88
  "eslint-config-spruce": "^10.11.4",