@hg-ts/tests 0.0.30 → 0.1.0

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/.eslintcache CHANGED
@@ -1 +1 @@
1
- [{"/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/decorate-test.ts":"1","/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/describe.decorator.ts":"2","/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/expect-error.decorator.ts":"3","/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/index.ts":"4","/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/test.decorator.ts":"5","/Volumes/Work/ts/hg/framework/packages/tests/src/expection.ts":"6","/Volumes/Work/ts/hg/framework/packages/tests/src/index.ts":"7","/Volumes/Work/ts/hg/framework/packages/tests/src/test-runner.ts":"8","/Volumes/Work/ts/hg/framework/packages/tests/src/test-suite.ts":"9"},{"size":690,"mtime":1664329600892,"results":"10","hashOfConfig":"11"},{"size":218,"mtime":1626299896349,"results":"12","hashOfConfig":"11"},{"size":448,"mtime":1664329482818,"results":"13","hashOfConfig":"11"},{"size":114,"mtime":1626299896350,"results":"14","hashOfConfig":"11"},{"size":539,"mtime":1657490375779,"results":"15","hashOfConfig":"11"},{"size":218,"mtime":1657493281168,"results":"16","hashOfConfig":"11"},{"size":169,"mtime":1665300013486,"results":"17","hashOfConfig":"11"},{"size":2989,"mtime":1664319237830,"results":"18","hashOfConfig":"11"},{"size":380,"mtime":1660866296753,"results":"19","hashOfConfig":"11"},{"filePath":"20","messages":"21","suppressedMessages":"22","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"ic51mg",{"filePath":"23","messages":"24","suppressedMessages":"25","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"26","messages":"27","suppressedMessages":"28","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"29","messages":"30","suppressedMessages":"31","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"32","messages":"33","suppressedMessages":"34","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"35","messages":"36","suppressedMessages":"37","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"38","messages":"39","suppressedMessages":"40","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"41","messages":"42","suppressedMessages":"43","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"44","messages":"45","suppressedMessages":"46","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/decorate-test.ts",[],["47"],"/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/describe.decorator.ts",[],[],"/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/expect-error.decorator.ts",[],[],"/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/index.ts",[],[],"/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/test.decorator.ts",[],[],"/Volumes/Work/ts/hg/framework/packages/tests/src/expection.ts",[],[],"/Volumes/Work/ts/hg/framework/packages/tests/src/index.ts",[],[],"/Volumes/Work/ts/hg/framework/packages/tests/src/test-runner.ts",[],[],"/Volumes/Work/ts/hg/framework/packages/tests/src/test-suite.ts",[],[],{"ruleId":"48","severity":2,"message":"49","line":12,"column":11,"nodeType":"50","messageId":"51","endLine":12,"endColumn":15,"suppressions":"52"},"@typescript-eslint/no-this-alias","Unexpected aliasing of 'this' to local variable.","Identifier","thisAssignment",["53"],{"kind":"54","justification":"55"},"directive",""]
1
+ [{"/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/decorate-test.ts":"1","/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/describe.decorator.ts":"2","/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/expect-error.decorator.ts":"3","/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/index.ts":"4","/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/test.decorator.ts":"5","/Volumes/Work/ts/hg/framework/packages/tests/src/expection.ts":"6","/Volumes/Work/ts/hg/framework/packages/tests/src/index.ts":"7","/Volumes/Work/ts/hg/framework/packages/tests/src/test-runner.ts":"8","/Volumes/Work/ts/hg/framework/packages/tests/src/test-suite.ts":"9"},{"size":690,"mtime":1664329600892,"results":"10","hashOfConfig":"11"},{"size":218,"mtime":1626299896349,"results":"12","hashOfConfig":"11"},{"size":448,"mtime":1664329482818,"results":"13","hashOfConfig":"11"},{"size":114,"mtime":1626299896350,"results":"14","hashOfConfig":"11"},{"size":539,"mtime":1657490375779,"results":"15","hashOfConfig":"11"},{"size":218,"mtime":1657493281168,"results":"16","hashOfConfig":"11"},{"size":169,"mtime":1665300013486,"results":"17","hashOfConfig":"11"},{"size":2989,"mtime":1664319237830,"results":"18","hashOfConfig":"11"},{"size":380,"mtime":1660866296753,"results":"19","hashOfConfig":"11"},{"filePath":"20","messages":"21","suppressedMessages":"22","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1w9mpck",{"filePath":"23","messages":"24","suppressedMessages":"25","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"26","messages":"27","suppressedMessages":"28","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"29","messages":"30","suppressedMessages":"31","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"32","messages":"33","suppressedMessages":"34","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"35","messages":"36","suppressedMessages":"37","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"38","messages":"39","suppressedMessages":"40","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"41","messages":"42","suppressedMessages":"43","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"44","messages":"45","suppressedMessages":"46","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/decorate-test.ts",[],["47"],"/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/describe.decorator.ts",[],[],"/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/expect-error.decorator.ts",[],[],"/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/index.ts",[],[],"/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/test.decorator.ts",[],[],"/Volumes/Work/ts/hg/framework/packages/tests/src/expection.ts",[],[],"/Volumes/Work/ts/hg/framework/packages/tests/src/index.ts",[],[],"/Volumes/Work/ts/hg/framework/packages/tests/src/test-runner.ts",[],[],"/Volumes/Work/ts/hg/framework/packages/tests/src/test-suite.ts",[],[],{"ruleId":"48","severity":2,"message":"49","line":12,"column":11,"nodeType":"50","messageId":"51","endLine":12,"endColumn":15,"suppressions":"52"},"@typescript-eslint/no-this-alias","Unexpected aliasing of 'this' to local variable.","Identifier","thisAssignment",["53"],{"kind":"54","justification":"55"},"directive",""]
package/config/base.cjs CHANGED
@@ -23,8 +23,8 @@ const baseConfig = {
23
23
  };
24
24
 
25
25
  if (process.env.CI) {
26
- baseConfig.reporter = resolve(__dirname, 'ci-reporter.cjs');
27
- baseConfig['reporter-options'] = `mochaFile=${resolve('junit.xml')}`;
26
+ baseConfig.reporter = 'mocha-junit-reporter';
27
+ baseConfig['reporter-options'] = `mochaFile=${resolve('mocha.junit.xml')}`;
28
28
  }
29
29
 
30
30
  module.exports.baseConfig = baseConfig;
@@ -1,4 +1,4 @@
1
- declare type TestDecorator = (callback: () => Promise<void>) => Promise<void>;
1
+ type TestDecorator = (callback: () => Promise<void>) => Promise<void>;
2
2
  export declare function createTestDecorator(decorator: TestDecorator): MethodDecorator;
3
3
  export {};
4
4
  //# sourceMappingURL=decorate-test.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"decorate-test.d.ts","sourceRoot":"","sources":["../../src/decorators/decorate-test.ts"],"names":[],"mappings":"AAAA,aAAK,aAAa,GAAG,CAAC,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAEtE,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,aAAa,GAAG,eAAe,CAmB7E"}
1
+ {"version":3,"file":"decorate-test.d.ts","sourceRoot":"","sources":["../../src/decorators/decorate-test.ts"],"names":[],"mappings":"AAAA,KAAK,aAAa,GAAG,CAAC,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAEtE,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,aAAa,GAAG,eAAe,CAmB7E"}
@@ -1,2 +1,3 @@
1
+ /// <reference types="@hg-ts/types" />
1
2
  export declare function ExpectException(error: Class<any, any[]>): MethodDecorator;
2
3
  //# 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,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,eAAe,CAazE"}
1
+ {"version":3,"file":"expect-error.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/expect-error.decorator.ts"],"names":[],"mappings":";AAGA,wBAAgB,eAAe,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,eAAe,CAazE"}
@@ -1,10 +1,10 @@
1
- export declare type MethodName = string | symbol;
2
- export declare type Options = {
1
+ export type MethodName = string | symbol;
2
+ export type Options = {
3
3
  name?: string;
4
4
  only?: boolean;
5
5
  skip?: boolean;
6
6
  todo?: boolean;
7
7
  };
8
- export declare type Method<Arguments extends any[] = never> = (...args: Arguments) => Promise<void> | void;
8
+ export type Method<Arguments extends any[] = never> = (...args: Arguments) => Promise<void> | void;
9
9
  export declare function Test(options?: Options): MethodDecorator;
10
10
  //# sourceMappingURL=test.decorator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"test.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/test.decorator.ts"],"names":[],"mappings":"AAGA,oBAAY,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AACzC,oBAAY,OAAO,GAAG;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CACf,CAAC;AACF,oBAAY,MAAM,CAAC,SAAS,SAAS,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,IAAI,EAAE,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AAEnG,wBAAgB,IAAI,CAAC,OAAO,GAAE,OAAY,GAAG,eAAe,CAU3D"}
1
+ {"version":3,"file":"test.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/test.decorator.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AACzC,MAAM,MAAM,OAAO,GAAG;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CACf,CAAC;AACF,MAAM,MAAM,MAAM,CAAC,SAAS,SAAS,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,IAAI,EAAE,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AAEnG,wBAAgB,IAAI,CAAC,OAAO,GAAE,OAAY,GAAG,eAAe,CAU3D"}
@@ -1,10 +1,10 @@
1
1
  import type { TestSuiteConstructor } from './test-suite';
2
- export declare type TestRunnerOptions = {
2
+ export type TestRunnerOptions = {
3
3
  name?: string;
4
4
  only?: boolean;
5
5
  skip?: boolean;
6
6
  };
7
- export declare type TestMethod = (...args: unknown[]) => Promise<void>;
7
+ export type TestMethod = (...args: unknown[]) => Promise<void>;
8
8
  export declare class TestRunner {
9
9
  static run(suiteConstructor: TestSuiteConstructor, options?: TestRunnerOptions): void;
10
10
  private static getDescribeFunction;
@@ -1 +1 @@
1
- {"version":3,"file":"test-runner.d.ts","sourceRoot":"","sources":["../src/test-runner.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAa,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpE,oBAAY,iBAAiB,GAAG;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,oBAAY,UAAU,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAI/D,qBAAa,UAAU;WACR,GAAG,CAChB,gBAAgB,EAAE,oBAAoB,EACtC,OAAO,GAAE,iBAAsB,GAC7B,IAAI;IAUP,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAiBlC,OAAO,CAAC,MAAM,CAAC,QAAQ;IAqBvB,OAAO,CAAC,MAAM,CAAC,aAAa;IAe5B,OAAO,CAAC,MAAM,CAAC,aAAa;IAa5B,OAAO,CAAC,MAAM,CAAC,qBAAqB;CAWpC"}
1
+ {"version":3,"file":"test-runner.d.ts","sourceRoot":"","sources":["../src/test-runner.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAa,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpE,MAAM,MAAM,iBAAiB,GAAG;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAI/D,qBAAa,UAAU;WACR,GAAG,CAChB,gBAAgB,EAAE,oBAAoB,EACtC,OAAO,GAAE,iBAAsB,GAC7B,IAAI;IAUP,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAiBlC,OAAO,CAAC,MAAM,CAAC,QAAQ;IAqBvB,OAAO,CAAC,MAAM,CAAC,aAAa;IAe5B,OAAO,CAAC,MAAM,CAAC,aAAa;IAa5B,OAAO,CAAC,MAAM,CAAC,qBAAqB;CAWpC"}
@@ -1,5 +1,5 @@
1
1
  import type { MethodName, Options } from './decorators';
2
- export declare type TestSuiteConstructor = new () => TestSuite;
2
+ export type TestSuiteConstructor = new () => TestSuite;
3
3
  export declare abstract class TestSuite {
4
4
  testsMap: Map<MethodName, Options> | null;
5
5
  setUp(): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"test-suite.d.ts","sourceRoot":"","sources":["../src/test-suite.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,UAAU,EACV,OAAO,EACP,MAAM,cAAc,CAAC;AAEtB,oBAAY,oBAAoB,GAAG,UAAU,SAAS,CAAC;AACvD,8BAAsB,SAAS;IACvB,QAAQ,EAAE,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAEpC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAEtB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAEzB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAE3B,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;CACvC"}
1
+ {"version":3,"file":"test-suite.d.ts","sourceRoot":"","sources":["../src/test-suite.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,UAAU,EACV,OAAO,EACP,MAAM,cAAc,CAAC;AAEtB,MAAM,MAAM,oBAAoB,GAAG,UAAU,SAAS,CAAC;AACvD,8BAAsB,SAAS;IACvB,QAAQ,EAAE,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAEpC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAEtB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAEzB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAE3B,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;CACvC"}
@@ -1,4 +1,4 @@
1
- declare type TestDecorator = (callback: () => Promise<void>) => Promise<void>;
1
+ type TestDecorator = (callback: () => Promise<void>) => Promise<void>;
2
2
  export declare function createTestDecorator(decorator: TestDecorator): MethodDecorator;
3
3
  export {};
4
4
  //# sourceMappingURL=decorate-test.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"decorate-test.d.ts","sourceRoot":"","sources":["../../src/decorators/decorate-test.ts"],"names":[],"mappings":"AAAA,aAAK,aAAa,GAAG,CAAC,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAEtE,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,aAAa,GAAG,eAAe,CAmB7E"}
1
+ {"version":3,"file":"decorate-test.d.ts","sourceRoot":"","sources":["../../src/decorators/decorate-test.ts"],"names":[],"mappings":"AAAA,KAAK,aAAa,GAAG,CAAC,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAEtE,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,aAAa,GAAG,eAAe,CAmB7E"}
@@ -1,2 +1,3 @@
1
+ /// <reference types="@hg-ts/types" />
1
2
  export declare function ExpectException(error: Class<any, any[]>): MethodDecorator;
2
3
  //# 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,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,eAAe,CAazE"}
1
+ {"version":3,"file":"expect-error.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/expect-error.decorator.ts"],"names":[],"mappings":";AAGA,wBAAgB,eAAe,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,eAAe,CAazE"}
@@ -1,10 +1,10 @@
1
- export declare type MethodName = string | symbol;
2
- export declare type Options = {
1
+ export type MethodName = string | symbol;
2
+ export type Options = {
3
3
  name?: string;
4
4
  only?: boolean;
5
5
  skip?: boolean;
6
6
  todo?: boolean;
7
7
  };
8
- export declare type Method<Arguments extends any[] = never> = (...args: Arguments) => Promise<void> | void;
8
+ export type Method<Arguments extends any[] = never> = (...args: Arguments) => Promise<void> | void;
9
9
  export declare function Test(options?: Options): MethodDecorator;
10
10
  //# sourceMappingURL=test.decorator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"test.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/test.decorator.ts"],"names":[],"mappings":"AAGA,oBAAY,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AACzC,oBAAY,OAAO,GAAG;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CACf,CAAC;AACF,oBAAY,MAAM,CAAC,SAAS,SAAS,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,IAAI,EAAE,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AAEnG,wBAAgB,IAAI,CAAC,OAAO,GAAE,OAAY,GAAG,eAAe,CAU3D"}
1
+ {"version":3,"file":"test.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/test.decorator.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AACzC,MAAM,MAAM,OAAO,GAAG;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CACf,CAAC;AACF,MAAM,MAAM,MAAM,CAAC,SAAS,SAAS,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,IAAI,EAAE,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AAEnG,wBAAgB,IAAI,CAAC,OAAO,GAAE,OAAY,GAAG,eAAe,CAU3D"}
@@ -1,10 +1,10 @@
1
1
  import type { TestSuiteConstructor } from './test-suite';
2
- export declare type TestRunnerOptions = {
2
+ export type TestRunnerOptions = {
3
3
  name?: string;
4
4
  only?: boolean;
5
5
  skip?: boolean;
6
6
  };
7
- export declare type TestMethod = (...args: unknown[]) => Promise<void>;
7
+ export type TestMethod = (...args: unknown[]) => Promise<void>;
8
8
  export declare class TestRunner {
9
9
  static run(suiteConstructor: TestSuiteConstructor, options?: TestRunnerOptions): void;
10
10
  private static getDescribeFunction;
@@ -1 +1 @@
1
- {"version":3,"file":"test-runner.d.ts","sourceRoot":"","sources":["../src/test-runner.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAa,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpE,oBAAY,iBAAiB,GAAG;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,oBAAY,UAAU,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAI/D,qBAAa,UAAU;WACR,GAAG,CAChB,gBAAgB,EAAE,oBAAoB,EACtC,OAAO,GAAE,iBAAsB,GAC7B,IAAI;IAUP,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAiBlC,OAAO,CAAC,MAAM,CAAC,QAAQ;IAqBvB,OAAO,CAAC,MAAM,CAAC,aAAa;IAe5B,OAAO,CAAC,MAAM,CAAC,aAAa;IAa5B,OAAO,CAAC,MAAM,CAAC,qBAAqB;CAWpC"}
1
+ {"version":3,"file":"test-runner.d.ts","sourceRoot":"","sources":["../src/test-runner.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAa,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEpE,MAAM,MAAM,iBAAiB,GAAG;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAI/D,qBAAa,UAAU;WACR,GAAG,CAChB,gBAAgB,EAAE,oBAAoB,EACtC,OAAO,GAAE,iBAAsB,GAC7B,IAAI;IAUP,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAiBlC,OAAO,CAAC,MAAM,CAAC,QAAQ;IAqBvB,OAAO,CAAC,MAAM,CAAC,aAAa;IAe5B,OAAO,CAAC,MAAM,CAAC,aAAa;IAa5B,OAAO,CAAC,MAAM,CAAC,qBAAqB;CAWpC"}
@@ -1,5 +1,5 @@
1
1
  import type { MethodName, Options } from './decorators';
2
- export declare type TestSuiteConstructor = new () => TestSuite;
2
+ export type TestSuiteConstructor = new () => TestSuite;
3
3
  export declare abstract class TestSuite {
4
4
  testsMap: Map<MethodName, Options> | null;
5
5
  setUp(): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"test-suite.d.ts","sourceRoot":"","sources":["../src/test-suite.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,UAAU,EACV,OAAO,EACP,MAAM,cAAc,CAAC;AAEtB,oBAAY,oBAAoB,GAAG,UAAU,SAAS,CAAC;AACvD,8BAAsB,SAAS;IACvB,QAAQ,EAAE,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAEpC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAEtB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAEzB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAE3B,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;CACvC"}
1
+ {"version":3,"file":"test-suite.d.ts","sourceRoot":"","sources":["../src/test-suite.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,UAAU,EACV,OAAO,EACP,MAAM,cAAc,CAAC;AAEtB,MAAM,MAAM,oBAAoB,GAAG,UAAU,SAAS,CAAC;AACvD,8BAAsB,SAAS;IACvB,QAAQ,EAAE,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;IAEpC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAEtB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAEzB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAE3B,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;CACvC"}
package/eslint.junit.xml CHANGED
@@ -1,28 +1,31 @@
1
1
  <?xml version="1.0" encoding="utf-8"?>
2
2
  <testsuites>
3
- <testsuite package="org.eslint" time="0" tests="1" errors="0" name="/Volumes/Work/ts/hg/framework/utils/tests/src/decorators/describe.decorator.ts">
4
- <testcase time="0" name="/Volumes/Work/ts/hg/framework/utils/tests/src/decorators/describe.decorator.ts" classname="/Volumes/Work/ts/hg/framework/utils/tests/src/decorators/describe.decorator" />
3
+ <testsuite package="org.eslint" time="0" tests="1" errors="0" name="/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/decorate-test.ts">
4
+ <testcase time="0" name="/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/decorate-test.ts" classname="/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/decorate-test" />
5
5
  </testsuite>
6
- <testsuite package="org.eslint" time="0" tests="1" errors="0" name="/Volumes/Work/ts/hg/framework/utils/tests/src/decorators/expect-error.decorator.ts">
7
- <testcase time="0" name="/Volumes/Work/ts/hg/framework/utils/tests/src/decorators/expect-error.decorator.ts" classname="/Volumes/Work/ts/hg/framework/utils/tests/src/decorators/expect-error.decorator" />
6
+ <testsuite package="org.eslint" time="0" tests="1" errors="0" name="/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/describe.decorator.ts">
7
+ <testcase time="0" name="/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/describe.decorator.ts" classname="/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/describe.decorator" />
8
8
  </testsuite>
9
- <testsuite package="org.eslint" time="0" tests="1" errors="0" name="/Volumes/Work/ts/hg/framework/utils/tests/src/decorators/index.ts">
10
- <testcase time="0" name="/Volumes/Work/ts/hg/framework/utils/tests/src/decorators/index.ts" classname="/Volumes/Work/ts/hg/framework/utils/tests/src/decorators/index" />
9
+ <testsuite package="org.eslint" time="0" tests="1" errors="0" name="/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/expect-error.decorator.ts">
10
+ <testcase time="0" name="/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/expect-error.decorator.ts" classname="/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/expect-error.decorator" />
11
11
  </testsuite>
12
- <testsuite package="org.eslint" time="0" tests="1" errors="0" name="/Volumes/Work/ts/hg/framework/utils/tests/src/decorators/test.decorator.ts">
13
- <testcase time="0" name="/Volumes/Work/ts/hg/framework/utils/tests/src/decorators/test.decorator.ts" classname="/Volumes/Work/ts/hg/framework/utils/tests/src/decorators/test.decorator" />
12
+ <testsuite package="org.eslint" time="0" tests="1" errors="0" name="/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/index.ts">
13
+ <testcase time="0" name="/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/index.ts" classname="/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/index" />
14
14
  </testsuite>
15
- <testsuite package="org.eslint" time="0" tests="1" errors="0" name="/Volumes/Work/ts/hg/framework/utils/tests/src/expection.ts">
16
- <testcase time="0" name="/Volumes/Work/ts/hg/framework/utils/tests/src/expection.ts" classname="/Volumes/Work/ts/hg/framework/utils/tests/src/expection" />
15
+ <testsuite package="org.eslint" time="0" tests="1" errors="0" name="/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/test.decorator.ts">
16
+ <testcase time="0" name="/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/test.decorator.ts" classname="/Volumes/Work/ts/hg/framework/packages/tests/src/decorators/test.decorator" />
17
17
  </testsuite>
18
- <testsuite package="org.eslint" time="0" tests="1" errors="0" name="/Volumes/Work/ts/hg/framework/utils/tests/src/index.ts">
19
- <testcase time="0" name="/Volumes/Work/ts/hg/framework/utils/tests/src/index.ts" classname="/Volumes/Work/ts/hg/framework/utils/tests/src/index" />
18
+ <testsuite package="org.eslint" time="0" tests="1" errors="0" name="/Volumes/Work/ts/hg/framework/packages/tests/src/expection.ts">
19
+ <testcase time="0" name="/Volumes/Work/ts/hg/framework/packages/tests/src/expection.ts" classname="/Volumes/Work/ts/hg/framework/packages/tests/src/expection" />
20
20
  </testsuite>
21
- <testsuite package="org.eslint" time="0" tests="1" errors="0" name="/Volumes/Work/ts/hg/framework/utils/tests/src/test-runner.ts">
22
- <testcase time="0" name="/Volumes/Work/ts/hg/framework/utils/tests/src/test-runner.ts" classname="/Volumes/Work/ts/hg/framework/utils/tests/src/test-runner" />
21
+ <testsuite package="org.eslint" time="0" tests="1" errors="0" name="/Volumes/Work/ts/hg/framework/packages/tests/src/index.ts">
22
+ <testcase time="0" name="/Volumes/Work/ts/hg/framework/packages/tests/src/index.ts" classname="/Volumes/Work/ts/hg/framework/packages/tests/src/index" />
23
23
  </testsuite>
24
- <testsuite package="org.eslint" time="0" tests="1" errors="0" name="/Volumes/Work/ts/hg/framework/utils/tests/src/test-suite.ts">
25
- <testcase time="0" name="/Volumes/Work/ts/hg/framework/utils/tests/src/test-suite.ts" classname="/Volumes/Work/ts/hg/framework/utils/tests/src/test-suite" />
24
+ <testsuite package="org.eslint" time="0" tests="1" errors="0" name="/Volumes/Work/ts/hg/framework/packages/tests/src/test-runner.ts">
25
+ <testcase time="0" name="/Volumes/Work/ts/hg/framework/packages/tests/src/test-runner.ts" classname="/Volumes/Work/ts/hg/framework/packages/tests/src/test-runner" />
26
+ </testsuite>
27
+ <testsuite package="org.eslint" time="0" tests="1" errors="0" name="/Volumes/Work/ts/hg/framework/packages/tests/src/test-suite.ts">
28
+ <testcase time="0" name="/Volumes/Work/ts/hg/framework/packages/tests/src/test-suite.ts" classname="/Volumes/Work/ts/hg/framework/packages/tests/src/test-suite" />
26
29
  </testsuite>
27
30
  </testsuites>
28
31
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hg-ts/tests",
3
- "version": "0.0.30",
3
+ "version": "0.1.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist-esm/index.js",
6
6
  "repository": "git@gitlab.com:hyper-graph/framework.git",
@@ -12,21 +12,20 @@
12
12
  "lint:fix": "hg lint:fix"
13
13
  },
14
14
  "devDependencies": {
15
- "@hg-ts-config/eslint-config": "0.0.30",
16
- "@hg-ts-config/typescript": "0.0.30",
17
- "@hg-ts/cli": "0.0.30",
18
- "@hg-ts/types": "0.0.30",
19
- "@types/mocha": "9.1.1",
20
- "@types/node": "18.7.6",
21
- "@typescript-eslint/eslint-plugin": "5.33.1",
22
- "@typescript-eslint/parser": "5.33.1",
23
- "eslint": "8.24.0",
24
- "eslint-formatter-codeframe": "7.32.1",
25
- "mocha": "10.0.0",
15
+ "@hg-ts-config/eslint-config": "0.1.0",
16
+ "@hg-ts-config/typescript": "0.1.0",
17
+ "@hg-ts/cli": "0.1.0",
18
+ "@hg-ts/types": "0.1.0",
19
+ "@types/mocha": "10.0.3",
20
+ "@types/node": "20.8.7",
21
+ "@typescript-eslint/eslint-plugin": "6.8.0",
22
+ "@typescript-eslint/parser": "6.8.0",
23
+ "eslint": "8.52.0",
24
+ "mocha": "10.2.0",
26
25
  "reflect-metadata": "0.1.13",
27
- "tsc-watch": "5.0.3",
28
- "tslib": "2.4.0",
29
- "typescript": "4.7.4"
26
+ "tsc-watch": "6.0.4",
27
+ "tslib": "2.6.2",
28
+ "typescript": "5.2.2"
30
29
  },
31
30
  "peerDependencies": {
32
31
  "mocha": "*",
@@ -34,6 +33,6 @@
34
33
  "reflect-metadata": "*"
35
34
  },
36
35
  "dependencies": {
37
- "expect": "28.1.3"
36
+ "expect": "29.7.0"
38
37
  }
39
38
  }
package/tsconfig.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
- "extends": "@hg-ts-config/typescript",
2
+ "extends": "@hg-ts-config/typescript/commonjs",
3
3
  "compilerOptions": {
4
- "module": "CommonJS",
5
4
  "baseUrl": "src",
6
5
  "rootDir": "src",
7
6
  "outDir": "dist"