@hg-ts/tests 0.4.4 → 0.5.1
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/dist/decorators/expect-error.decorator.d.ts +1 -1
- package/dist/decorators/expect-error.decorator.d.ts.map +1 -1
- package/dist/decorators/expect-error.decorator.js.map +1 -1
- package/dist/runner.d.ts.map +1 -1
- package/dist/runner.js +6 -2
- package/dist/runner.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function ExpectException(error?:
|
|
1
|
+
export declare function ExpectException(error?: AnyCLass<any, any[]>): MethodDecorator;
|
|
2
2
|
//# sourceMappingURL=expect-error.decorator.d.ts.map
|
|
@@ -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,
|
|
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,QAAQ,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,eAAe,CAgB7E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expect-error.decorator.js","sourceRoot":"","sources":["../../src/decorators/expect-error.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,UAAU,eAAe,CAAC,
|
|
1
|
+
{"version":3,"file":"expect-error.decorator.js","sourceRoot":"","sources":["../../src/decorators/expect-error.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,UAAU,eAAe,CAAC,KAA4B;IAC3D,OAAO,mBAAmB,CAAC,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,KAAK,EAAE,CAAC;gBACX,MAAM,CAAC,GAAG,CAAC,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;YACnC,CAAC;QACF,CAAC;gBAAS,CAAC;YACV,MAAM,CAAC,YAAY,CAAC,CAAC,UAAU,EAAE,CAAC;QACnC,CAAC;IACF,CAAC,CAAC,CAAC;AACJ,CAAC"}
|
package/dist/runner.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../src/runner.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../src/runner.ts"],"names":[],"mappings":"AAUA,OAAO,EAEN,gBAAgB,EAChB,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,EAGX,WAAW,EACX,MAAM,YAAY,CAAC;AAEpB,qBAAa,MAAM;WACE,GAAG,CACtB,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,GAAE,WAAgB,GACvB,OAAO,CAAC,IAAI,CAAC;IAqBhB,OAAO,CAAC,MAAM,CAAC,QAAQ;IAqBvB,OAAO,CAAC,MAAM,CAAC,aAAa;IAa5B,OAAO,CAAC,MAAM,CAAC,aAAa;CAU5B"}
|
package/dist/runner.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { afterAll, afterEach, beforeAll, beforeEach, describe, test, } from 'vitest';
|
|
1
|
+
import { afterAll, afterEach, beforeAll, beforeEach, describe, test, vi, } from 'vitest';
|
|
2
2
|
export class Runner {
|
|
3
3
|
static async run(suiteConstructor, options = {}) {
|
|
4
4
|
let moddedDescribe = describe;
|
|
@@ -18,7 +18,11 @@ export class Runner {
|
|
|
18
18
|
suite.testsMap = suiteConstructor.prototype.testsMap;
|
|
19
19
|
beforeAll(async () => suite.setUp());
|
|
20
20
|
afterAll(async () => suite.tearDown());
|
|
21
|
-
beforeEach(async () =>
|
|
21
|
+
beforeEach(async () => {
|
|
22
|
+
vi.clearAllTimers();
|
|
23
|
+
vi.clearAllMocks();
|
|
24
|
+
await suite.beforeEach();
|
|
25
|
+
});
|
|
22
26
|
afterEach(async () => suite.afterEach());
|
|
23
27
|
if (!suite.testsMap) {
|
|
24
28
|
suite.testsMap = new Map();
|
package/dist/runner.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runner.js","sourceRoot":"","sources":["../src/runner.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,QAAQ,EACR,SAAS,EACT,SAAS,EACT,UAAU,EACV,QAAQ,EAER,IAAI,
|
|
1
|
+
{"version":3,"file":"runner.js","sourceRoot":"","sources":["../src/runner.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,QAAQ,EACR,SAAS,EACT,SAAS,EACT,UAAU,EACV,QAAQ,EAER,IAAI,EACJ,EAAE,GACF,MAAM,QAAQ,CAAC;AAYhB,MAAM,OAAO,MAAM;IACX,MAAM,CAAC,KAAK,CAAC,GAAG,CACtB,gBAAkC,EAClC,UAAuB,EAAE;QAEzB,IAAI,cAAc,GAAa,QAAQ,CAAC;QAExC,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;YAClB,cAAc,GAAG,cAAc,CAAC,IAAgB,CAAC;QAClD,CAAC;QAED,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;YAClB,cAAc,GAAG,cAAc,CAAC,IAAgB,CAAC;QAClD,CAAC;QAED,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;YAClB,cAAc,GAAG,cAAc,CAAC,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KAAK,EAAE,QAAQ,CAAC,CAAC;QAGnD,IAAI,CAAC,IAAI,EAAE;YACV,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,KAAK;YAC3B,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,KAAK;YAC3B,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,KAAK;SAC3B,EAAE,MAAM,CAAC,CAAC;IACZ,CAAC;IAEO,MAAM,CAAC,aAAa,CAAC,KAAY,EAAE,UAAsB;QAChE,MAAM,UAAU,GAAK,KAAa,CAAC,UAAU,CAA2C,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACrG,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,CAAC;QAEjE,MAAM,gBAAgB,GAAQ,EAAE,CAAC,UAAU,CAAC,EAAE,UAAU,EAAW,CAAC;QAEpE,OAAO,KAAK,EAAC,GAAG,IAAW,EAAiB,EAAE;YAC7C,MAAM,gBAAgB,CAAC,UAAU,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;QAC7C,CAAC,CAAC;IACH,CAAC;CACD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hg-ts/tests",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"unplugin-swc": "1.5.9"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@hg-ts-config/typescript": "0.
|
|
27
|
-
"@hg-ts/linter": "0.
|
|
28
|
-
"@hg-ts/types": "0.
|
|
26
|
+
"@hg-ts-config/typescript": "0.5.1",
|
|
27
|
+
"@hg-ts/linter": "0.5.1",
|
|
28
|
+
"@hg-ts/types": "0.5.1",
|
|
29
29
|
"@types/node": "22.19.1",
|
|
30
30
|
"@vitest/coverage-v8": "4.0.14",
|
|
31
31
|
"eslint": "9.18.0",
|