@hg-ts/tests 0.3.3 → 0.3.4

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,4 +1,4 @@
1
- import type { SuiteConstructor } from '../suite';
2
- import { TestOptions } from '../types';
1
+ import type { SuiteConstructor } from '../suite.js';
2
+ import { TestOptions } from '../types.js';
3
3
  export declare function Describe<T extends SuiteConstructor>(options?: TestOptions): TypedClassDecorator<T>;
4
4
  //# sourceMappingURL=describe.decorator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"describe.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/describe.decorator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,wBAAgB,QAAQ,CAAC,CAAC,SAAS,gBAAgB,EAAE,OAAO,GAAE,WAAgB,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAKtG"}
1
+ {"version":3,"file":"describe.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/describe.decorator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,wBAAgB,QAAQ,CAAC,CAAC,SAAS,gBAAgB,EAAE,OAAO,GAAE,WAAgB,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAKtG"}
@@ -1,4 +1,4 @@
1
- import { Runner } from '../runner';
1
+ import { Runner } from '../runner.js';
2
2
  export function Describe(options = {}) {
3
3
  return (target) => {
4
4
  Runner.run(target, options);
@@ -1 +1 @@
1
- {"version":3,"file":"describe.decorator.js","sourceRoot":"","sources":["../../src/decorators/describe.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAInC,MAAM,UAAU,QAAQ,CAA6B,UAAuB,EAAE;IAC7E,OAAO,CAAC,MAAS,EAAQ,EAAE;QAE1B,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7B,CAAC,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"describe.decorator.js","sourceRoot":"","sources":["../../src/decorators/describe.decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAItC,MAAM,UAAU,QAAQ,CAA6B,UAAuB,EAAE;IAC7E,OAAO,CAAC,MAAS,EAAQ,EAAE;QAE1B,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7B,CAAC,CAAC;AACH,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { expect } from 'vitest';
2
- import { createTestDecorator } from './decorate-test';
2
+ import { createTestDecorator } from './decorate-test.js';
3
3
  export function ExpectException(error) {
4
4
  return createTestDecorator(async (method) => {
5
5
  let isThrowError = false;
@@ -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,iBAAiB,CAAC;AAEtD,MAAM,UAAU,eAAe,CAAC,KAAyB;IACxD,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"}
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,KAAyB;IACxD,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"}
@@ -1,4 +1,4 @@
1
- export * from './expect-error.decorator';
2
- export * from './describe.decorator';
3
- export * from './test.decorator';
1
+ export * from './expect-error.decorator.js';
2
+ export * from './describe.decorator.js';
3
+ export * from './test.decorator.js';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC"}
@@ -1,4 +1,4 @@
1
- export * from './expect-error.decorator';
2
- export * from './describe.decorator';
3
- export * from './test.decorator';
1
+ export * from './expect-error.decorator.js';
2
+ export * from './describe.decorator.js';
3
+ export * from './test.decorator.js';
4
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/decorators/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC"}
@@ -1,3 +1,3 @@
1
- import type { TestOptions } from '../types';
1
+ import type { TestOptions } from '../types.js';
2
2
  export declare function Test(options?: TestOptions): MethodDecorator;
3
3
  //# 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":"AAAA,OAAO,KAAK,EAEX,WAAW,EACX,MAAM,UAAU,CAAC;AAGlB,wBAAgB,IAAI,CAAC,OAAO,GAAE,WAAgB,GAAG,eAAe,CAU/D"}
1
+ {"version":3,"file":"test.decorator.d.ts","sourceRoot":"","sources":["../../src/decorators/test.decorator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEX,WAAW,EACX,MAAM,aAAa,CAAC;AAErB,wBAAgB,IAAI,CAAC,OAAO,GAAE,WAAgB,GAAG,eAAe,CAU/D"}
@@ -1,4 +1,4 @@
1
- import { Suite } from './suite';
1
+ import { Suite } from './suite.js';
2
2
  export declare class ExampleTestSuite extends Suite {
3
3
  success(): Promise<void>;
4
4
  failed(): Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"example.test.d.ts","sourceRoot":"","sources":["../src/example.test.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,qBACa,gBAAiB,SAAQ,KAAK;IAE7B,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAMxB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAKvB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAGrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAGrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAClC"}
1
+ {"version":3,"file":"example.test.d.ts","sourceRoot":"","sources":["../src/example.test.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC,qBACa,gBAAiB,SAAQ,KAAK;IAE7B,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAMxB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAKvB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAGrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAGrB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAClC"}
@@ -1,7 +1,7 @@
1
1
  import { __decorate, __metadata } from "tslib";
2
2
  import { expect } from 'vitest';
3
- import { Describe, ExpectException, Test, } from './decorators';
4
- import { Suite } from './suite';
3
+ import { Describe, ExpectException, Test, } from './decorators/index.js';
4
+ import { Suite } from './suite.js';
5
5
  let ExampleTestSuite = class ExampleTestSuite extends Suite {
6
6
  async success() {
7
7
  expect(true).toBeTruthy();
@@ -1 +1 @@
1
- {"version":3,"file":"example.test.js","sourceRoot":"","sources":["../src/example.test.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EACN,QAAQ,EACR,eAAe,EACf,IAAI,GACJ,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGzB,IAAM,gBAAgB,G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Y,AAAN,KAAK,CAAC,IAAI,KAAmB,CAAC;IAGxB,AAAN,KAAK,CAAC,IAAI,KAAmB,CAAC;IAGxB,AAAN,KAAK,CAAC,IAAI,KAAmB,CAAC;CACrC,CAAA;AAlBa;IADZ,IAAI,EAAE;;;;+CAGN;AAIY;IAFZ,eAAe,CAAC,KAAK,CAAC;IACtB,IAAI,EAAE;;;;8CAGN;AAGY;IADZ,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;;;4CACgB;AAGxB;IADZ,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;;;4CACgB;AAGxB;IADZ,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;;;4CACgB;AAnBzB,gBAAgB;IAD5B,QAAQ,EAAE;GACE,gBAAgB,CAoB5B"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { Describe, Test, ExpectException } from './decorators';
2
- export { Suite } from './suite';
1
+ export { Describe, Test, ExpectException } from './decorators/index.js';
2
+ export { Suite } from './suite.js';
3
3
  export { expect } from 'vitest';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExE,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { Describe, Test, ExpectException } from './decorators';
2
- export { Suite } from './suite';
1
+ export { Describe, Test, ExpectException } from './decorators/index.js';
2
+ export { Suite } from './suite.js';
3
3
  export { expect } from 'vitest';
4
4
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExE,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC"}
package/dist/runner.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { SuiteConstructor } from './suite';
2
- import type { TestOptions } from './types';
1
+ import { SuiteConstructor } from './suite.js';
2
+ import type { TestOptions } from './types.js';
3
3
  export declare class Runner {
4
4
  static run(suiteConstructor: SuiteConstructor, options?: TestOptions): Promise<void>;
5
5
  private static describe;
@@ -1 +1 @@
1
- {"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../src/runner.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAEX,gBAAgB,EAChB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAGX,WAAW,EACX,MAAM,SAAS,CAAC;AAEjB,qBAAa,MAAM;WACE,GAAG,CACtB,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,GAAE,WAAgB,GACvB,OAAO,CAAC,IAAI,CAAC;IAqBhB,OAAO,CAAC,MAAM,CAAC,QAAQ;IAiBvB,OAAO,CAAC,MAAM,CAAC,aAAa;IAa5B,OAAO,CAAC,MAAM,CAAC,aAAa;CAU5B"}
1
+ {"version":3,"file":"runner.d.ts","sourceRoot":"","sources":["../src/runner.ts"],"names":[],"mappings":"AASA,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;IAiBvB,OAAO,CAAC,MAAM,CAAC,aAAa;IAa5B,OAAO,CAAC,MAAM,CAAC,aAAa;CAU5B"}
package/dist/suite.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { MethodName, TestOptions } from './types';
1
+ import type { MethodName, TestOptions } from './types.js';
2
2
  export type SuiteConstructor = new () => Suite;
3
3
  export declare abstract class Suite {
4
4
  testsMap: Map<MethodName, TestOptions> | null;
@@ -1 +1 @@
1
- {"version":3,"file":"suite.d.ts","sourceRoot":"","sources":["../src/suite.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,UAAU,EACV,WAAW,EACX,MAAM,SAAS,CAAC;AAEjB,MAAM,MAAM,gBAAgB,GAAG,UAAU,KAAK,CAAC;AAE/C,8BAAsB,KAAK;IACnB,QAAQ,EAAE,GAAG,CAAC,UAAU,EAAE,WAAW,CAAC,GAAG,IAAI,CAAC;IAExC,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":"suite.d.ts","sourceRoot":"","sources":["../src/suite.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,UAAU,EACV,WAAW,EACX,MAAM,YAAY,CAAC;AAEpB,MAAM,MAAM,gBAAgB,GAAG,UAAU,KAAK,CAAC;AAE/C,8BAAsB,KAAK;IACnB,QAAQ,EAAE,GAAG,CAAC,UAAU,EAAE,WAAW,CAAC,GAAG,IAAI,CAAC;IAExC,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/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@hg-ts/tests",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "main": "dist/index.js",
5
+ "type": "module",
5
6
  "exports": {
6
7
  ".": "./dist/index.js",
7
8
  "./config": "./vitest.config.mjs"
@@ -18,13 +19,13 @@
18
19
  "test:dev": "HG_ENV=test vitest watch"
19
20
  },
20
21
  "dependencies": {
22
+ "@swc/core": "1.15.3",
21
23
  "unplugin-swc": "1.5.9"
22
24
  },
23
25
  "devDependencies": {
24
- "@hg-ts-config/typescript": "0.3.3",
25
- "@hg-ts/linter": "0.3.3",
26
- "@hg-ts/types": "0.3.3",
27
- "@swc/core": "1.15.3",
26
+ "@hg-ts-config/typescript": "0.3.4",
27
+ "@hg-ts/linter": "0.3.4",
28
+ "@hg-ts/types": "0.3.4",
28
29
  "@types/node": "22.19.1",
29
30
  "@vitest/coverage-v8": "4.0.14",
30
31
  "eslint": "9.18.0",
package/tsconfig.json CHANGED
@@ -3,7 +3,9 @@
3
3
  "compilerOptions": {
4
4
  "baseUrl": "src",
5
5
  "rootDir": "src",
6
- "outDir": "dist"
6
+ "outDir": "dist",
7
+ "moduleResolution": "nodenext",
8
+ "module": "NodeNext"
7
9
  },
8
10
  "exclude": ["dist"]
9
11
  }