@hg-ts/tests 0.1.82 → 0.1.83

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 +1 @@
1
- {"version":3,"file":"expect-error.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/expect-error.decorator.ts"],"names":[],"mappings":"AAGA,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,eAAe,CAe1E"}
1
+ {"version":3,"file":"expect-error.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/expect-error.decorator.ts"],"names":[],"mappings":"AAIA,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,eAAe,CAmB1E"}
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ExpectException = ExpectException;
4
+ const expect_1 = require("expect");
4
5
  const expection_1 = require("../expection");
5
6
  const decorate_test_1 = require("./decorate-test");
6
7
  function ExpectException(error) {
@@ -11,6 +12,9 @@ function ExpectException(error) {
11
12
  }
12
13
  catch (err) {
13
14
  isThrowError = true;
15
+ if (err instanceof expect_1.JestAssertionError) {
16
+ throw err;
17
+ }
14
18
  if (error) {
15
19
  (0, expection_1.expect)(err).toBeInstanceOf(error);
16
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"expect-error.decorator.js","sourceRoot":"","sources":["../../src/decorators/expect-error.decorator.ts"],"names":[],"mappings":";;AAGA,0CAeC;AAlBD,4CAAsC;AACtC,mDAAsD;AAEtD,SAAgB,eAAe,CAAC,KAAyB;IACxD,OAAO,IAAA,mCAAmB,EAAC,KAAK,EAAC,MAA2B,EAAE,EAAE;QAC/D,IAAI,YAAY,GAAG,KAAK,CAAC;QAEzB,IAAI,CAAC;YACJ,MAAM,MAAM,EAAE,CAAC;QAChB,CAAC;QAAC,OAAO,GAAY,EAAE,CAAC;YACvB,YAAY,GAAG,IAAI,CAAC;YACpB,IAAI,KAAK,EAAE,CAAC;gBACX,IAAA,kBAAM,EAAC,GAAG,CAAC,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;YACnC,CAAC;QACF,CAAC;gBAAS,CAAC;YACV,IAAA,kBAAM,EAAC,YAAY,CAAC,CAAC,UAAU,EAAE,CAAC;QACnC,CAAC;IACF,CAAC,CAAC,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"expect-error.decorator.js","sourceRoot":"","sources":["../../src/decorators/expect-error.decorator.ts"],"names":[],"mappings":";;AAIA,0CAmBC;AAvBD,mCAA4C;AAC5C,4CAAsC;AACtC,mDAAsD;AAEtD,SAAgB,eAAe,CAAC,KAAyB;IACxD,OAAO,IAAA,mCAAmB,EAAC,KAAK,EAAC,MAA2B,EAAE,EAAE;QAC/D,IAAI,YAAY,GAAG,KAAK,CAAC;QAEzB,IAAI,CAAC;YACJ,MAAM,MAAM,EAAE,CAAC;QAChB,CAAC;QAAC,OAAO,GAAY,EAAE,CAAC;YACvB,YAAY,GAAG,IAAI,CAAC;YAEpB,IAAI,GAAG,YAAY,2BAAkB,EAAE,CAAC;gBACvC,MAAM,GAAG,CAAC;YACX,CAAC;YACD,IAAI,KAAK,EAAE,CAAC;gBACX,IAAA,kBAAM,EAAC,GAAG,CAAC,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;YACnC,CAAC;QACF,CAAC;gBAAS,CAAC;YACV,IAAA,kBAAM,EAAC,YAAY,CAAC,CAAC,UAAU,EAAE,CAAC;QACnC,CAAC;IACF,CAAC,CAAC,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hg-ts/tests",
3
- "version": "0.1.82",
3
+ "version": "0.1.83",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js"
@@ -15,9 +15,9 @@
15
15
  "lint:ts:fix": "lint-ts --fix"
16
16
  },
17
17
  "devDependencies": {
18
- "@hg-ts-config/typescript": "0.1.82",
19
- "@hg-ts/linter": "0.1.82",
20
- "@hg-ts/types": "0.1.82",
18
+ "@hg-ts-config/typescript": "0.1.83",
19
+ "@hg-ts/linter": "0.1.83",
20
+ "@hg-ts/types": "0.1.83",
21
21
  "@types/node": "22.10.6",
22
22
  "eslint": "9.18.0",
23
23
  "reflect-metadata": "0.2.2",