nole 2.2.1 → 2.2.2

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/bin/nole.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node --loader=ts-node/esm
1
+ #!/usr/bin/env node
2
2
 
3
3
  import program from "commander";
4
4
  import glob from "glob";
@@ -8,6 +8,9 @@ import colors from "colors/safe.js";
8
8
  import { ManualRun } from "../dist/run.js";
9
9
  import { TimeDifference } from "../dist/utils/time_difference.js";
10
10
  import { Delay, TimeResolve } from "../dist/utils/time_factor.js";
11
+ import { register } from "node:module";
12
+ import { pathToFileURL } from "node:url";
13
+ register("ts-node/esm", pathToFileURL("./"));
11
14
 
12
15
  const pkg = JSON.parse(
13
16
  fs.readFileSync(new URL("../package.json", import.meta.url)).toString()
package/dist/data.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { Test } from "./test.js";
2
- export declare function HashMap(): Map<any, Test>;
1
+ import { Test } from "./test.js";
2
+ export declare function HashMap(): Map<any, Test>;
3
3
  //# sourceMappingURL=data.d.ts.map
package/dist/data.js CHANGED
@@ -1,9 +1,9 @@
1
- const KEY = "_nole_hash";
2
- export function HashMap() {
3
- let g = global;
4
- if (g[KEY]) {
5
- return g[KEY];
6
- }
7
- return (g[KEY] = new Map());
8
- }
1
+ const KEY = "_nole_hash";
2
+ export function HashMap() {
3
+ let g = global;
4
+ if (g[KEY]) {
5
+ return g[KEY];
6
+ }
7
+ return (g[KEY] = new Map());
8
+ }
9
9
  //# sourceMappingURL=data.js.map
package/dist/data.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"data.js","sourceRoot":"","sources":["../src/data.ts"],"names":[],"mappings":"AAEA,MAAM,GAAG,GAAG,YAAY,CAAC;AAEzB,MAAM,UAAU,OAAO;IACrB,IAAI,CAAC,GAAQ,MAAM,CAAC;IAEpB,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE;QACV,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC;KACf;IAED,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG,EAAa,CAAC,CAAC;AACzC,CAAC"}
1
+ {"version":3,"file":"data.js","sourceRoot":"","sources":["../src/data.ts"],"names":[],"mappings":"AAEA,MAAM,GAAG,GAAG,YAAY,CAAC;AAEzB,MAAM,UAAU,OAAO;IACrB,IAAI,CAAC,GAAQ,MAAM,CAAC;IAEpB,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;QACX,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC;IAChB,CAAC;IAED,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG,EAAa,CAAC,CAAC;AACzC,CAAC"}
@@ -1,9 +1,9 @@
1
- import { HookType, ClassDefition } from "./test.js";
2
- export declare function Spec(timeout?: number): MethodDecorator;
3
- export declare function Dependency<T>(dependency: ClassDefition<T>): PropertyDecorator;
4
- export declare function Dependencies(dependencies: (() => ClassDefition<any>[]) | ClassDefition<any>[]): ClassDecorator;
5
- export declare function Dependents(dependents: (() => ClassDefition<any>[]) | ClassDefition<any>[]): ClassDecorator;
6
- export declare function Hook(type: HookType, timeout?: number): MethodDecorator;
7
- export declare function Skip(reason?: string): MethodDecorator;
8
- export declare function SkipClass(reason?: string): ClassDecorator;
1
+ import { HookType, ClassDefition } from "./test.js";
2
+ export declare function Spec(timeout?: number): MethodDecorator;
3
+ export declare function Dependency<T>(dependency: ClassDefition<T>): PropertyDecorator;
4
+ export declare function Dependencies(dependencies: (() => ClassDefition<any>[]) | ClassDefition<any>[]): ClassDecorator;
5
+ export declare function Dependents(dependents: (() => ClassDefition<any>[]) | ClassDefition<any>[]): ClassDecorator;
6
+ export declare function Hook(type: HookType, timeout?: number): MethodDecorator;
7
+ export declare function Skip(reason?: string): MethodDecorator;
8
+ export declare function SkipClass(reason?: string): ClassDecorator;
9
9
  //# sourceMappingURL=decorators.d.ts.map
@@ -1,118 +1,118 @@
1
- import { HashMap } from "./data.js";
2
- import { Test } from "./test.js";
3
- import camelcase from "camelcase";
4
- export function Spec(timeout = 5000) {
5
- return function (target, propertyKey) {
6
- DeclareSpecForTestClass(target, propertyKey, timeout);
7
- };
8
- }
9
- export function Dependency(dependency) {
10
- return function (target, propertyKey) {
11
- DeclareDependencyForTestClass(target, propertyKey, dependency);
12
- };
13
- }
14
- export function Dependencies(dependencies) {
15
- return function (target) {
16
- setImmediate(() => {
17
- const value = isFunction(dependencies) ? dependencies() : dependencies;
18
- for (const dependency of value) {
19
- const propertyKey = validPropertyName(dependency.name);
20
- DeclareDependencyForTestClass({ constructor: target }, propertyKey, dependency);
21
- }
22
- });
23
- };
24
- }
25
- export function Dependents(dependents) {
26
- return function (target) {
27
- setImmediate(() => {
28
- const value = isFunction(dependents) ? dependents() : dependents;
29
- for (const dependent of value) {
30
- const propertyKey = validPropertyName(target.name);
31
- DeclareDependencyForTestClass({ constructor: dependent }, propertyKey, target);
32
- }
33
- });
34
- };
35
- }
36
- export function Hook(type, timeout = 5000) {
37
- return function (target, propertyKey) {
38
- DeclareHookForTestClass(target, propertyKey, type, timeout);
39
- };
40
- }
41
- export function Skip(reason) {
42
- return function (target, propertyKey) {
43
- DeclareAsSkipped(target, propertyKey, reason ? reason : "");
44
- };
45
- }
46
- export function SkipClass(reason) {
47
- return function (target) {
48
- DeclareAsSkippedClass(target, reason ? reason : "");
49
- };
50
- }
51
- function GetTestInstanceOfTarget(target) {
52
- let instance = HashMap().get(target);
53
- if (!instance) {
54
- HashMap().set(target, (instance = new Test(target)));
55
- }
56
- return instance;
57
- }
58
- function DeclareDependencyForTestClass(protoOfTarget, propertyKey, dependency) {
59
- const target = protoOfTarget.constructor;
60
- const test = GetTestInstanceOfTarget(target);
61
- const depTest = GetTestInstanceOfTarget(dependency);
62
- test.dependencies.push({ propertyKey, dependency: depTest });
63
- depTest.dependents.push(test);
64
- }
65
- function DeclareSpecForTestClass(protoOfTarget, propertyKey, timeout) {
66
- const target = protoOfTarget.constructor;
67
- const test = GetTestInstanceOfTarget(target);
68
- if (test.hooks.has(propertyKey)) {
69
- throw new Error("@Hook cannot be used with @Spec! Test: ");
70
- }
71
- if (test.specs.has(propertyKey)) {
72
- throw new Error("Multiple @Spec for a single method is prohibited");
73
- }
74
- test.specs.set(propertyKey, { timeout });
75
- }
76
- function DeclareHookForTestClass(protoOfTarget, propertyKey, hookType, timeout) {
77
- const target = protoOfTarget.constructor;
78
- const test = GetTestInstanceOfTarget(target);
79
- if (test.specs.has(propertyKey)) {
80
- throw new Error("@Hook cannot be used with @Spec");
81
- }
82
- if (test.hooks.has(propertyKey)) {
83
- throw new Error("Multiple @Hook for a single method is prohibited");
84
- }
85
- test.hooks.set(propertyKey, { type: hookType, timeout });
86
- }
87
- function DeclareAsSkipped(protoOfTarget, propertyKey, reason) {
88
- const target = protoOfTarget.constructor;
89
- const test = GetTestInstanceOfTarget(target);
90
- if (test.skip.has(propertyKey)) {
91
- const obj = test.skip.get(propertyKey);
92
- if (reason) {
93
- obj.reason = (obj.reason ? obj.reason + ", " : "") + reason;
94
- }
95
- }
96
- else {
97
- test.skip.set(propertyKey, { reason });
98
- }
99
- }
100
- function DeclareAsSkippedClass(target, reason) {
101
- const test = GetTestInstanceOfTarget(target);
102
- test.skipClass = { reason };
103
- }
104
- function validPropertyName(name) {
105
- return camelcase(name, {
106
- preserveConsecutiveUppercase: process.env.NOLE_PRESERVE_CONSECUTIVE_UPPERCASE == undefined
107
- ? true
108
- : process.env.NOLE_PRESERVE_CONSECUTIVE_UPPERCASE === "true",
109
- pascalCase: process.env.NOLE_PASCALCASE == undefined
110
- ? false
111
- : process.env.NOLE_PASCALCASE === "true",
112
- locale: "en-US",
113
- });
114
- }
115
- function isFunction(thing) {
116
- return typeof thing !== "object" && typeof thing === "function";
117
- }
1
+ import { HashMap } from "./data.js";
2
+ import { Test } from "./test.js";
3
+ import camelcase from "camelcase";
4
+ export function Spec(timeout = 5000) {
5
+ return function (target, propertyKey) {
6
+ DeclareSpecForTestClass(target, propertyKey, timeout);
7
+ };
8
+ }
9
+ export function Dependency(dependency) {
10
+ return function (target, propertyKey) {
11
+ DeclareDependencyForTestClass(target, propertyKey, dependency);
12
+ };
13
+ }
14
+ export function Dependencies(dependencies) {
15
+ return function (target) {
16
+ setImmediate(() => {
17
+ const value = isFunction(dependencies) ? dependencies() : dependencies;
18
+ for (const dependency of value) {
19
+ const propertyKey = validPropertyName(dependency.name);
20
+ DeclareDependencyForTestClass({ constructor: target }, propertyKey, dependency);
21
+ }
22
+ });
23
+ };
24
+ }
25
+ export function Dependents(dependents) {
26
+ return function (target) {
27
+ setImmediate(() => {
28
+ const value = isFunction(dependents) ? dependents() : dependents;
29
+ for (const dependent of value) {
30
+ const propertyKey = validPropertyName(target.name);
31
+ DeclareDependencyForTestClass({ constructor: dependent }, propertyKey, target);
32
+ }
33
+ });
34
+ };
35
+ }
36
+ export function Hook(type, timeout = 5000) {
37
+ return function (target, propertyKey) {
38
+ DeclareHookForTestClass(target, propertyKey, type, timeout);
39
+ };
40
+ }
41
+ export function Skip(reason) {
42
+ return function (target, propertyKey) {
43
+ DeclareAsSkipped(target, propertyKey, reason ? reason : "");
44
+ };
45
+ }
46
+ export function SkipClass(reason) {
47
+ return function (target) {
48
+ DeclareAsSkippedClass(target, reason ? reason : "");
49
+ };
50
+ }
51
+ function GetTestInstanceOfTarget(target) {
52
+ let instance = HashMap().get(target);
53
+ if (!instance) {
54
+ HashMap().set(target, (instance = new Test(target)));
55
+ }
56
+ return instance;
57
+ }
58
+ function DeclareDependencyForTestClass(protoOfTarget, propertyKey, dependency) {
59
+ const target = protoOfTarget.constructor;
60
+ const test = GetTestInstanceOfTarget(target);
61
+ const depTest = GetTestInstanceOfTarget(dependency);
62
+ test.dependencies.push({ propertyKey, dependency: depTest });
63
+ depTest.dependents.push(test);
64
+ }
65
+ function DeclareSpecForTestClass(protoOfTarget, propertyKey, timeout) {
66
+ const target = protoOfTarget.constructor;
67
+ const test = GetTestInstanceOfTarget(target);
68
+ if (test.hooks.has(propertyKey)) {
69
+ throw new Error("@Hook cannot be used with @Spec! Test: ");
70
+ }
71
+ if (test.specs.has(propertyKey)) {
72
+ throw new Error("Multiple @Spec for a single method is prohibited");
73
+ }
74
+ test.specs.set(propertyKey, { timeout });
75
+ }
76
+ function DeclareHookForTestClass(protoOfTarget, propertyKey, hookType, timeout) {
77
+ const target = protoOfTarget.constructor;
78
+ const test = GetTestInstanceOfTarget(target);
79
+ if (test.specs.has(propertyKey)) {
80
+ throw new Error("@Hook cannot be used with @Spec");
81
+ }
82
+ if (test.hooks.has(propertyKey)) {
83
+ throw new Error("Multiple @Hook for a single method is prohibited");
84
+ }
85
+ test.hooks.set(propertyKey, { type: hookType, timeout });
86
+ }
87
+ function DeclareAsSkipped(protoOfTarget, propertyKey, reason) {
88
+ const target = protoOfTarget.constructor;
89
+ const test = GetTestInstanceOfTarget(target);
90
+ if (test.skip.has(propertyKey)) {
91
+ const obj = test.skip.get(propertyKey);
92
+ if (reason) {
93
+ obj.reason = (obj.reason ? obj.reason + ", " : "") + reason;
94
+ }
95
+ }
96
+ else {
97
+ test.skip.set(propertyKey, { reason });
98
+ }
99
+ }
100
+ function DeclareAsSkippedClass(target, reason) {
101
+ const test = GetTestInstanceOfTarget(target);
102
+ test.skipClass = { reason };
103
+ }
104
+ function validPropertyName(name) {
105
+ return camelcase(name, {
106
+ preserveConsecutiveUppercase: process.env.NOLE_PRESERVE_CONSECUTIVE_UPPERCASE == undefined
107
+ ? true
108
+ : process.env.NOLE_PRESERVE_CONSECUTIVE_UPPERCASE === "true",
109
+ pascalCase: process.env.NOLE_PASCALCASE == undefined
110
+ ? false
111
+ : process.env.NOLE_PASCALCASE === "true",
112
+ locale: "en-US",
113
+ });
114
+ }
115
+ function isFunction(thing) {
116
+ return typeof thing !== "object" && typeof thing === "function";
117
+ }
118
118
  //# sourceMappingURL=decorators.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"decorators.js","sourceRoot":"","s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,GAAG,CAAC,mCAAmC,IAAI,SAAS;YAC1D,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,mCAAmC,KAAK,MAAM;QAEhE,UAAU,EACR,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,SAAS;YACtC,CAAC,CAAC,KAAK;YACP,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,KAAK,MAAM;QAE5C,MAAM,EAAE,OAAO;KAChB,CAAC,CAAC;AACL,CAAC;AAED,SAAS,UAAU,CAAC,KAAU;IAC5B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,UAAU,CAAC;AAClE,CAAC"}
package/dist/dynamic.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare function skipTest(reason?: string): void;
1
+ export declare function skipTest(reason?: string): void;
2
2
  //# sourceMappingURL=dynamic.d.ts.map
package/dist/dynamic.js CHANGED
@@ -1,11 +1,11 @@
1
- export function skipTest(reason) {
2
- throw new NoleManualSkip(reason);
3
- }
4
- class NoleManualSkip extends Error {
5
- constructor(reason) {
6
- super(`Dynamicly skipped! ${reason}`);
7
- this.reason = reason;
8
- this._nole_anchor = 1;
9
- }
10
- }
1
+ export function skipTest(reason) {
2
+ throw new NoleManualSkip(reason);
3
+ }
4
+ class NoleManualSkip extends Error {
5
+ constructor(reason) {
6
+ super(`Dynamicly skipped! ${reason}`);
7
+ this.reason = reason;
8
+ this._nole_anchor = 1;
9
+ }
10
+ }
11
11
  //# sourceMappingURL=dynamic.js.map
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { Dependency, Spec, Hook, Skip, SkipClass, Dependencies, Dependencies as After, Dependents as Before, Dependents, } from "./decorators.js";
2
- export { HookType } from "./test.js";
3
- export { skipTest } from "./dynamic.js";
1
+ export { Dependency, Spec, Hook, Skip, SkipClass, Dependencies, Dependencies as After, Dependents as Before, Dependents, } from "./decorators.js";
2
+ export { HookType } from "./test.js";
3
+ export { skipTest } from "./dynamic.js";
4
4
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { Dependency, Spec, Hook, Skip, SkipClass, Dependencies, Dependencies as After, Dependents as Before, Dependents, } from "./decorators.js";
2
- export { HookType } from "./test.js";
3
- export { skipTest } from "./dynamic.js";
1
+ export { Dependency, Spec, Hook, Skip, SkipClass, Dependencies, Dependencies as After, Dependents as Before, Dependents, } from "./decorators.js";
2
+ export { HookType } from "./test.js";
3
+ export { skipTest } from "./dynamic.js";
4
4
  //# sourceMappingURL=index.js.map
package/dist/run.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- interface Options {
2
- log: Function;
3
- orderDebug: boolean;
4
- }
5
- export declare function ManualRun(options: Options): Promise<void>;
6
- export {};
1
+ interface Options {
2
+ log: Function;
3
+ orderDebug: boolean;
4
+ }
5
+ export declare function ManualRun(options: Options): Promise<void>;
6
+ export {};
7
7
  //# sourceMappingURL=run.d.ts.map