@haibun/core 1.13.6 → 1.13.14
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/build/index.d.ts +1 -2
- package/build/index.js +1 -27
- package/build/index.js.map +1 -1
- package/build/lib/ConnectedLogger.d.ts +3 -4
- package/build/lib/ConnectedLogger.js +3 -9
- package/build/lib/ConnectedLogger.js.map +1 -1
- package/build/lib/Logger.d.ts +10 -11
- package/build/lib/Logger.js +17 -19
- package/build/lib/Logger.js.map +1 -1
- package/build/lib/Logger.test.d.ts +0 -1
- package/build/lib/Logger.test.js +11 -36
- package/build/lib/Logger.test.js.map +1 -1
- package/build/lib/TestLogger.d.ts +1 -2
- package/build/lib/TestLogger.js +1 -4
- package/build/lib/TestLogger.js.map +1 -1
- package/build/lib/Timer.d.ts +0 -1
- package/build/lib/Timer.js +4 -8
- package/build/lib/Timer.js.map +1 -1
- package/build/lib/contexts.d.ts +1 -2
- package/build/lib/contexts.js +9 -14
- package/build/lib/contexts.js.map +1 -1
- package/build/lib/{defs/index.d.ts → defs.d.ts} +57 -57
- package/build/lib/defs.js +28 -0
- package/build/lib/defs.js.map +1 -0
- package/build/lib/domain.d.ts +3 -4
- package/build/lib/domain.js +14 -23
- package/build/lib/domain.js.map +1 -1
- package/build/lib/features.d.ts +1 -2
- package/build/lib/features.js +15 -27
- package/build/lib/features.js.map +1 -1
- package/build/lib/features.test.d.ts +0 -1
- package/build/lib/features.test.js +31 -59
- package/build/lib/features.test.js.map +1 -1
- package/build/lib/interfaces/logger.d.ts +9 -10
- package/build/lib/interfaces/logger.js +1 -4
- package/build/lib/interfaces/logger.js.map +1 -1
- package/build/lib/namedVars.d.ts +7 -8
- package/build/lib/namedVars.js +12 -20
- package/build/lib/namedVars.js.map +1 -1
- package/build/lib/namedVars.test.d.ts +0 -1
- package/build/lib/namedVars.test.js +33 -38
- package/build/lib/namedVars.test.js.map +1 -1
- package/build/lib/run-with-options.d.ts +2 -3
- package/build/lib/run-with-options.js +13 -19
- package/build/lib/run-with-options.js.map +1 -1
- package/build/lib/run.d.ts +3 -4
- package/build/lib/run.domains.test.d.ts +0 -1
- package/build/lib/run.domains.test.js +43 -51
- package/build/lib/run.domains.test.js.map +1 -1
- package/build/lib/run.js +28 -36
- package/build/lib/run.js.map +1 -1
- package/build/lib/run.test.d.ts +0 -1
- package/build/lib/run.test.js +28 -36
- package/build/lib/run.test.js.map +1 -1
- package/build/lib/test/TestSteps.d.ts +15 -16
- package/build/lib/test/TestSteps.js +39 -44
- package/build/lib/test/TestSteps.js.map +1 -1
- package/build/lib/test/TestStepsWithDomain.d.ts +7 -8
- package/build/lib/test/TestStepsWithDomain.js +12 -17
- package/build/lib/test/TestStepsWithDomain.js.map +1 -1
- package/build/lib/test/TestStepsWithOptions.d.ts +6 -7
- package/build/lib/test/TestStepsWithOptions.js +18 -23
- package/build/lib/test/TestStepsWithOptions.js.map +1 -1
- package/build/lib/test/lib.d.ts +5 -6
- package/build/lib/test/lib.js +38 -72
- package/build/lib/test/lib.js.map +1 -1
- package/build/lib/util/index.d.ts +5 -7
- package/build/lib/util/index.js +48 -127
- package/build/lib/util/index.js.map +1 -1
- package/build/lib/util/util.test.d.ts +0 -1
- package/build/lib/util/util.test.js +36 -68
- package/build/lib/util/util.test.js.map +1 -1
- package/build/phases/Builder.d.ts +3 -4
- package/build/phases/Builder.js +12 -12
- package/build/phases/Builder.js.map +1 -1
- package/build/phases/Builder.test.d.ts +0 -1
- package/build/phases/Builder.test.js +13 -18
- package/build/phases/Builder.test.js.map +1 -1
- package/build/phases/Executor.d.ts +1 -2
- package/build/phases/Executor.js +16 -17
- package/build/phases/Executor.js.map +1 -1
- package/build/phases/Resolver.d.ts +1 -2
- package/build/phases/Resolver.domains.test.d.ts +0 -1
- package/build/phases/Resolver.domains.test.js +1 -2
- package/build/phases/Resolver.domains.test.js.map +1 -1
- package/build/phases/Resolver.js +19 -20
- package/build/phases/Resolver.js.map +1 -1
- package/build/phases/Resolver.test.d.ts +0 -1
- package/build/phases/Resolver.test.js +31 -36
- package/build/phases/Resolver.test.js.map +1 -1
- package/build/steps/conformance.d.ts +6 -7
- package/build/steps/conformance.js +10 -15
- package/build/steps/conformance.js.map +1 -1
- package/build/steps/credentials.d.ts +7 -8
- package/build/steps/credentials.js +25 -32
- package/build/steps/credentials.js.map +1 -1
- package/build/steps/haibun.d.ts +13 -14
- package/build/steps/haibun.js +66 -71
- package/build/steps/haibun.js.map +1 -1
- package/build/steps/haibun.test.d.ts +0 -1
- package/build/steps/haibun.test.js +4 -6
- package/build/steps/haibun.test.js.map +1 -1
- package/build/steps/vars.d.ts +17 -18
- package/build/steps/vars.js +74 -83
- package/build/steps/vars.js.map +1 -1
- package/build/steps/vars.test.d.ts +0 -1
- package/build/steps/vars.test.js +9 -11
- package/build/steps/vars.test.js.map +1 -1
- package/package.json +19 -14
- package/build/index.d.ts.map +0 -1
- package/build/lib/ConnectedLogger.d.ts.map +0 -1
- package/build/lib/Logger.d.ts.map +0 -1
- package/build/lib/Logger.test.d.ts.map +0 -1
- package/build/lib/TestLogger.d.ts.map +0 -1
- package/build/lib/Timer.d.ts.map +0 -1
- package/build/lib/contexts.d.ts.map +0 -1
- package/build/lib/defs/index.d.ts.map +0 -1
- package/build/lib/defs/index.js +0 -31
- package/build/lib/defs/index.js.map +0 -1
- package/build/lib/domain.d.ts.map +0 -1
- package/build/lib/features.d.ts.map +0 -1
- package/build/lib/features.test.d.ts.map +0 -1
- package/build/lib/interfaces/logger.d.ts.map +0 -1
- package/build/lib/namedVars.d.ts.map +0 -1
- package/build/lib/namedVars.test.d.ts.map +0 -1
- package/build/lib/run-with-options.d.ts.map +0 -1
- package/build/lib/run.d.ts.map +0 -1
- package/build/lib/run.domains.test.d.ts.map +0 -1
- package/build/lib/run.test.d.ts.map +0 -1
- package/build/lib/test/TestSteps.d.ts.map +0 -1
- package/build/lib/test/TestStepsWithDomain.d.ts.map +0 -1
- package/build/lib/test/TestStepsWithOptions.d.ts.map +0 -1
- package/build/lib/test/lib.d.ts.map +0 -1
- package/build/lib/util/index.d.ts.map +0 -1
- package/build/lib/util/util.test.d.ts.map +0 -1
- package/build/link-packages.d.ts +0 -3
- package/build/link-packages.d.ts.map +0 -1
- package/build/link-packages.js +0 -24
- package/build/link-packages.js.map +0 -1
- package/build/phases/Builder.d.ts.map +0 -1
- package/build/phases/Builder.test.d.ts.map +0 -1
- package/build/phases/Executor.d.ts.map +0 -1
- package/build/phases/Resolver.d.ts.map +0 -1
- package/build/phases/Resolver.domains.test.d.ts.map +0 -1
- package/build/phases/Resolver.test.d.ts.map +0 -1
- package/build/scaffold/index.d.ts +0 -3
- package/build/scaffold/index.d.ts.map +0 -1
- package/build/scaffold/index.js +0 -11
- package/build/scaffold/index.js.map +0 -1
- package/build/scaffold/scaffold.d.ts +0 -11
- package/build/scaffold/scaffold.d.ts.map +0 -1
- package/build/scaffold/scaffold.js +0 -90
- package/build/scaffold/scaffold.js.map +0 -1
- package/build/scaffold/scaffold.test.d.ts +0 -2
- package/build/scaffold/scaffold.test.d.ts.map +0 -1
- package/build/scaffold/scaffold.test.js +0 -34
- package/build/scaffold/scaffold.test.js.map +0 -1
- package/build/scaffold.d.ts +0 -3
- package/build/scaffold.d.ts.map +0 -1
- package/build/scaffold.js +0 -78
- package/build/scaffold.js.map +0 -1
- package/build/steps/conformance.d.ts.map +0 -1
- package/build/steps/credentials.d.ts.map +0 -1
- package/build/steps/haibun.d.ts.map +0 -1
- package/build/steps/haibun.test.d.ts.map +0 -1
- package/build/steps/vars.d.ts.map +0 -1
- package/build/steps/vars.test.d.ts.map +0 -1
- package/scaffold/jest.config.ts.in +0 -11
- package/scaffold/src/lib/test.ts.in +0 -10
- package/scaffold/src/lib/ts.in +0 -11
- package/scaffold/src/stepper.test.ts.in +0 -16
- package/scaffold/src/stepper.ts.in +0 -26
- package/scaffold/tsconfig.json.in +0 -14
|
@@ -1,49 +1,44 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { AStepper } from '../defs.js';
|
|
2
|
+
import { actionNotOK, actionOK } from '../util/index.js';
|
|
3
|
+
const TestSteps = class TestSteps extends AStepper {
|
|
4
|
+
steps = {
|
|
5
|
+
fails: {
|
|
6
|
+
gwta: 'fail',
|
|
7
|
+
action: async () => actionNotOK('test fail'),
|
|
8
|
+
},
|
|
9
|
+
test: {
|
|
10
|
+
exact: 'When I have a test',
|
|
11
|
+
action: async () => actionOK(),
|
|
12
|
+
},
|
|
13
|
+
passes: {
|
|
14
|
+
exact: 'Then the test should pass',
|
|
15
|
+
action: async () => actionOK(),
|
|
16
|
+
},
|
|
17
|
+
named: {
|
|
18
|
+
match: /^Then the parameter (?<param>.+) is accepted$/,
|
|
19
|
+
action: async ({ param }) => {
|
|
20
|
+
return param === 'x' ? actionOK() : actionNotOK('test');
|
|
12
21
|
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
22
|
+
},
|
|
23
|
+
throws: {
|
|
24
|
+
gwta: 'throw an exception',
|
|
25
|
+
action: async () => {
|
|
26
|
+
throw Error(`<Thrown for test case>`);
|
|
16
27
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
28
|
+
},
|
|
29
|
+
buildsWithFinalizer: {
|
|
30
|
+
gwta: 'builds with finalizer',
|
|
31
|
+
action: async () => actionOK(),
|
|
32
|
+
build: async () => {
|
|
33
|
+
return {
|
|
34
|
+
...actionOK(),
|
|
35
|
+
finalize: (workspace) => {
|
|
36
|
+
this.getWorld().shared.set('done', 'ok');
|
|
37
|
+
},
|
|
38
|
+
};
|
|
20
39
|
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
action: async ({ param }) => {
|
|
24
|
-
return param === 'x' ? (0, util_1.actionOK)() : (0, util_1.actionNotOK)('test');
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
throws: {
|
|
28
|
-
gwta: 'throw an exception',
|
|
29
|
-
action: async () => {
|
|
30
|
-
throw Error(`<Thrown for test case>`);
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
buildsWithFinalizer: {
|
|
34
|
-
gwta: 'builds with finalizer',
|
|
35
|
-
action: async () => (0, util_1.actionOK)(),
|
|
36
|
-
build: async () => {
|
|
37
|
-
return {
|
|
38
|
-
...(0, util_1.actionOK)(),
|
|
39
|
-
finalize: (workspace) => {
|
|
40
|
-
this.getWorld().shared.set('done', 'ok');
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
}
|
|
40
|
+
},
|
|
41
|
+
};
|
|
47
42
|
};
|
|
48
|
-
|
|
43
|
+
export default TestSteps;
|
|
49
44
|
//# sourceMappingURL=TestSteps.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TestSteps.js","sourceRoot":"","sources":["../../../src/lib/test/TestSteps.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TestSteps.js","sourceRoot":"","sources":["../../../src/lib/test/TestSteps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGzD,MAAM,SAAS,GAAG,MAAM,SAAU,SAAQ,QAAQ;IAChD,KAAK,GAAG;QACN,KAAK,EAAE;YACL,IAAI,EAAE,MAAM;YACZ,MAAM,EAAE,KAAK,IAAI,EAAE,CAAC,WAAW,CAAC,WAAW,CAAC;SAC7C;QACD,IAAI,EAAE;YACJ,KAAK,EAAE,oBAAoB;YAC3B,MAAM,EAAE,KAAK,IAAI,EAAE,CAAC,QAAQ,EAAE;SAC/B;QACD,MAAM,EAAE;YACN,KAAK,EAAE,2BAA2B;YAClC,MAAM,EAAE,KAAK,IAAI,EAAE,CAAC,QAAQ,EAAE;SAC/B;QACD,KAAK,EAAE;YACL,KAAK,EAAE,+CAA+C;YACtD,MAAM,EAAE,KAAK,EAAE,EAAE,KAAK,EAAU,EAAE,EAAE;gBAClC,OAAO,KAAK,KAAK,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;YAC1D,CAAC;SACF;QACD,MAAM,EAAE;YACN,IAAI,EAAE,oBAAoB;YAC1B,MAAM,EAAE,KAAK,IAAI,EAAE;gBACjB,MAAM,KAAK,CAAC,wBAAwB,CAAC,CAAC;YACxC,CAAC;SACF;QACD,mBAAmB,EAAE;YACnB,IAAI,EAAE,uBAAuB;YAC7B,MAAM,EAAE,KAAK,IAAI,EAAE,CAAC,QAAQ,EAAE;YAC9B,KAAK,EAAE,KAAK,IAAI,EAAE;gBAChB,OAAO;oBACL,GAAG,QAAQ,EAAE;oBACb,QAAQ,EAAE,CAAC,SAA2B,EAAE,EAAE;wBACxC,IAAI,CAAC,QAAQ,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;oBAC3C,CAAC;iBACF,CAAC;YACJ,CAAC;SACF;KACF,CAAC;CACH,CAAC;AAGF,eAAe,SAAS,CAAC"}
|
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
import { AStepper } from '../defs';
|
|
1
|
+
import { AStepper } from '../defs.js';
|
|
2
2
|
declare const TestStepsWithDomain: {
|
|
3
3
|
new (): {
|
|
4
4
|
domains: {
|
|
5
5
|
name: string;
|
|
6
6
|
fileType: string;
|
|
7
7
|
is: string;
|
|
8
|
-
validate: () =>
|
|
8
|
+
validate: () => any;
|
|
9
9
|
}[];
|
|
10
10
|
locator: (name: string) => string;
|
|
11
11
|
steps: {
|
|
12
12
|
test: {
|
|
13
13
|
exact: string;
|
|
14
|
-
action: (input: any) => Promise<import("../defs").TOKActionResult>;
|
|
14
|
+
action: (input: any) => Promise<import("../defs.js").TOKActionResult>;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
world?: import("../defs").TWorld
|
|
17
|
+
world?: import("../defs.js").TWorld;
|
|
18
18
|
close?(): void;
|
|
19
19
|
endFeature?(): void;
|
|
20
|
-
onFailure?(result: import("../defs").TStepResult): void;
|
|
21
|
-
setWorld(world: import("../defs").TWorld, steppers: AStepper[]): void;
|
|
22
|
-
getWorld(): import("../defs").TWorld;
|
|
20
|
+
onFailure?(result: import("../defs.js").TStepResult): void;
|
|
21
|
+
setWorld(world: import("../defs.js").TWorld, steppers: AStepper[]): void;
|
|
22
|
+
getWorld(): import("../defs.js").TWorld;
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
export default TestStepsWithDomain;
|
|
26
|
-
//# sourceMappingURL=TestStepsWithDomain.d.ts.map
|
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
exact: 'The door is open',
|
|
13
|
-
action: async (input) => (0, util_1.actionOK)(),
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
}
|
|
1
|
+
import { AStepper } from '../defs.js';
|
|
2
|
+
import { actionOK } from '../util/index.js';
|
|
3
|
+
const TestStepsWithDomain = class TestStepsWithDomain extends AStepper {
|
|
4
|
+
domains = [{ name: 'door', fileType: 'door', is: 'string', validate: () => undefined }];
|
|
5
|
+
locator = (name) => name;
|
|
6
|
+
steps = {
|
|
7
|
+
test: {
|
|
8
|
+
exact: 'The door is open',
|
|
9
|
+
action: async (input) => actionOK(),
|
|
10
|
+
},
|
|
11
|
+
};
|
|
17
12
|
};
|
|
18
|
-
|
|
13
|
+
export default TestStepsWithDomain;
|
|
19
14
|
//# sourceMappingURL=TestStepsWithDomain.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TestStepsWithDomain.js","sourceRoot":"","sources":["../../../src/lib/test/TestStepsWithDomain.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TestStepsWithDomain.js","sourceRoot":"","sources":["../../../src/lib/test/TestStepsWithDomain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,QAAQ,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAG5C,MAAM,mBAAmB,GAAG,MAAM,mBAAoB,SAAQ,QAAQ;IACpE,OAAO,GAAG,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,SAAS,EAAE,CAAC,CAAC;IACxF,OAAO,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,IAAI,CAAC;IACjC,KAAK,GAAG;QACN,IAAI,EAAE;YACJ,KAAK,EAAE,kBAAkB;YACzB,MAAM,EAAE,KAAK,EAAE,KAAU,EAAE,EAAE,CAAC,QAAQ,EAAE;SACzC;KACF,CAAC;CACH,CAAC;AAGF,eAAe,mBAAmB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AStepper } from '../defs';
|
|
1
|
+
import { AStepper } from '../defs.js';
|
|
2
2
|
declare const TestStepsWithOptions: {
|
|
3
3
|
new (): {
|
|
4
4
|
options: {
|
|
@@ -12,16 +12,15 @@ declare const TestStepsWithOptions: {
|
|
|
12
12
|
steps: {
|
|
13
13
|
test: {
|
|
14
14
|
exact: string;
|
|
15
|
-
action: () => Promise<import("../defs").TOKActionResult>;
|
|
15
|
+
action: () => Promise<import("../defs.js").TOKActionResult>;
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
world?: import("../defs").TWorld
|
|
18
|
+
world?: import("../defs.js").TWorld;
|
|
19
19
|
close?(): void;
|
|
20
20
|
endFeature?(): void;
|
|
21
|
-
onFailure?(result: import("../defs").TStepResult): void;
|
|
22
|
-
setWorld(world: import("../defs").TWorld, steppers: AStepper[]): void;
|
|
23
|
-
getWorld(): import("../defs").TWorld;
|
|
21
|
+
onFailure?(result: import("../defs.js").TStepResult): void;
|
|
22
|
+
setWorld(world: import("../defs.js").TWorld, steppers: AStepper[]): void;
|
|
23
|
+
getWorld(): import("../defs.js").TWorld;
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
export default TestStepsWithOptions;
|
|
27
|
-
//# sourceMappingURL=TestStepsWithOptions.d.ts.map
|
|
@@ -1,26 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { AStepper } from '../defs.js';
|
|
2
|
+
import { actionOK, getStepperOption } from '../util/index.js';
|
|
3
|
+
const TestStepsWithOptions = class TestStepsWithOptions extends AStepper {
|
|
4
|
+
options = {
|
|
5
|
+
EXISTS: {
|
|
6
|
+
desc: 'option exists',
|
|
7
|
+
parse: (input) => ({ result: 42 }),
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
steps = {
|
|
11
|
+
test: {
|
|
12
|
+
exact: 'When I have a stepper option',
|
|
13
|
+
action: async () => {
|
|
14
|
+
const res = getStepperOption(this, 'EXISTS', this.getWorld().extraOptions);
|
|
15
|
+
return actionOK({ options: { summary: 'options', details: res } });
|
|
12
16
|
},
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
test: {
|
|
16
|
-
exact: 'When I have a stepper option',
|
|
17
|
-
action: async () => {
|
|
18
|
-
const res = (0, util_1.getStepperOption)(this, 'EXISTS', this.getWorld().extraOptions);
|
|
19
|
-
return (0, util_1.actionOK)({ options: { summary: 'options', details: res } });
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
}
|
|
17
|
+
},
|
|
18
|
+
};
|
|
24
19
|
};
|
|
25
|
-
|
|
20
|
+
export default TestStepsWithOptions;
|
|
26
21
|
//# sourceMappingURL=TestStepsWithOptions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TestStepsWithOptions.js","sourceRoot":"","sources":["../../../src/lib/test/TestStepsWithOptions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TestStepsWithOptions.js","sourceRoot":"","sources":["../../../src/lib/test/TestStepsWithOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,QAAQ,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAE9D,MAAM,oBAAoB,GAAG,MAAM,oBAAqB,SAAQ,QAAQ;IACtE,OAAO,GAAG;QACR,MAAM,EAAE;YACN,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;SAC3C;KACF,CAAC;IACF,KAAK,GAAG;QACN,IAAI,EAAE;YACJ,KAAK,EAAE,8BAA8B;YACrC,MAAM,EAAE,KAAK,IAAI,EAAE;gBACjB,MAAM,GAAG,GAAG,gBAAgB,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,YAAY,CAAC,CAAC;gBAC3E,OAAO,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;YACrE,CAAC;SACF;KACF,CAAC;CACH,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
package/build/lib/test/lib.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { TWorld, TVStep, TProtoOptions, CStepper, TExpandedFeature, TResult } from '../defs';
|
|
1
|
+
import { TWorld, TVStep, TProtoOptions, CStepper, TExpandedFeature, TResult } from '../defs.js';
|
|
2
2
|
export declare const HAIBUN_O_TESTSTEPSWITHOPTIONS_EXISTS = "HAIBUN_O_TESTSTEPSWITHOPTIONS_EXISTS";
|
|
3
|
-
export declare function getCreateSteppers(steppers: string[], addSteppers?: CStepper[]): Promise<import("../defs").AStepper[]>;
|
|
3
|
+
export declare function getCreateSteppers(steppers: string[], addSteppers?: CStepper[]): Promise<import("../defs.js").AStepper[]>;
|
|
4
4
|
export declare function getTestEnv(useSteppers: string[], test: string, world: TWorld): Promise<{
|
|
5
5
|
world: TWorld;
|
|
6
6
|
vstep: TVStep;
|
|
7
7
|
csteppers: CStepper[];
|
|
8
|
-
steppers: import("../defs").AStepper[];
|
|
8
|
+
steppers: import("../defs.js").AStepper[];
|
|
9
9
|
}>;
|
|
10
|
-
|
|
10
|
+
type TTestFeatures = {
|
|
11
11
|
path: string;
|
|
12
12
|
content: string;
|
|
13
13
|
}[];
|
|
@@ -31,6 +31,5 @@ export declare const asExpandedFeatures: (w: {
|
|
|
31
31
|
export declare function getDefaultWorld(sequence: number): {
|
|
32
32
|
world: TWorld;
|
|
33
33
|
};
|
|
34
|
-
export declare function getDefaultTag(sequence: number, desc?: string | undefined): import("../defs").TTag;
|
|
34
|
+
export declare function getDefaultTag(sequence: number, desc?: string | undefined): import("../defs.js").TTag;
|
|
35
35
|
export {};
|
|
36
|
-
//# sourceMappingURL=lib.d.ts.map
|
package/build/lib/test/lib.js
CHANGED
|
@@ -1,72 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.getDefaultTag = exports.getDefaultWorld = exports.asExpandedFeatures = exports.asFeatures = exports.getTestWorldWithOptions = exports.testWithDefaults = exports.getTestEnv = exports.getCreateSteppers = exports.HAIBUN_O_TESTSTEPSWITHOPTIONS_EXISTS = void 0;
|
|
27
|
-
const defs_1 = require("../defs");
|
|
28
|
-
const Resolver_1 = require("../../phases/Resolver");
|
|
29
|
-
const run_1 = require("./../run");
|
|
30
|
-
const util_1 = require("./../util");
|
|
31
|
-
const contexts_1 = require("../contexts");
|
|
32
|
-
const features_1 = require("./../features");
|
|
33
|
-
const domain_1 = require("./../domain");
|
|
34
|
-
const Logger_1 = __importStar(require("./../Logger"));
|
|
35
|
-
const Timer_1 = require("../Timer");
|
|
36
|
-
exports.HAIBUN_O_TESTSTEPSWITHOPTIONS_EXISTS = 'HAIBUN_O_TESTSTEPSWITHOPTIONS_EXISTS';
|
|
37
|
-
async function getCreateSteppers(steppers, addSteppers) {
|
|
38
|
-
const csteppers = await (0, util_1.getSteppers)(steppers);
|
|
39
|
-
return await (0, util_1.createSteppers)(csteppers.concat(addSteppers || []));
|
|
1
|
+
import { DEFAULT_DEST } from '../defs.js';
|
|
2
|
+
import { Resolver } from '../../phases/Resolver.js';
|
|
3
|
+
import { DEF_PROTO_OPTIONS, runWith } from './../run.js';
|
|
4
|
+
import { getSteppers, getRunTag, verifyExtraOptions, getDefaultOptions, createSteppers } from './../util/index.js';
|
|
5
|
+
import { WorldContext } from '../contexts.js';
|
|
6
|
+
import { featureSplit, withNameType } from './../features.js';
|
|
7
|
+
import { getDomains, verifyDomainsOrError } from './../domain.js';
|
|
8
|
+
import Logger, { LOGGER_NOTHING } from '../Logger.js';
|
|
9
|
+
import { Timer } from '../Timer.js';
|
|
10
|
+
export const HAIBUN_O_TESTSTEPSWITHOPTIONS_EXISTS = 'HAIBUN_O_TESTSTEPSWITHOPTIONS_EXISTS';
|
|
11
|
+
export async function getCreateSteppers(steppers, addSteppers) {
|
|
12
|
+
const csteppers = await getSteppers(steppers);
|
|
13
|
+
return await createSteppers(csteppers.concat(addSteppers || []));
|
|
40
14
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
const resolver = new Resolver_1.Resolver(steppers, 'all', world);
|
|
15
|
+
export async function getTestEnv(useSteppers, test, world) {
|
|
16
|
+
const csteppers = await getSteppers(useSteppers);
|
|
17
|
+
const steppers = await createSteppers(csteppers);
|
|
18
|
+
verifyExtraOptions({}, csteppers);
|
|
19
|
+
world.domains = await getDomains(steppers, world);
|
|
20
|
+
verifyDomainsOrError(steppers, world);
|
|
21
|
+
const resolver = new Resolver(steppers, 'all', world);
|
|
49
22
|
const actions = resolver.findSteps(test);
|
|
50
23
|
const vstep = {
|
|
51
|
-
source: { ...
|
|
24
|
+
source: { ...withNameType('test', '') },
|
|
52
25
|
in: test,
|
|
53
26
|
seq: 0,
|
|
54
27
|
actions,
|
|
55
28
|
};
|
|
56
29
|
return { world, vstep, csteppers, steppers };
|
|
57
30
|
}
|
|
58
|
-
|
|
59
|
-
async function testWithDefaults(featuresIn, addSteppers, protoOptions = run_1.DEF_PROTO_OPTIONS, inBackgrounds = []) {
|
|
31
|
+
export async function testWithDefaults(featuresIn, addSteppers, protoOptions = DEF_PROTO_OPTIONS, inBackgrounds = []) {
|
|
60
32
|
const inFeatures = (typeof featuresIn == 'string') ? [{ path: '/features/test', content: featuresIn }] : featuresIn;
|
|
61
|
-
const specl =
|
|
33
|
+
const specl = getDefaultOptions();
|
|
62
34
|
const world = getTestWorldWithOptions(protoOptions);
|
|
63
|
-
const features =
|
|
64
|
-
const backgrounds =
|
|
65
|
-
const ran = await
|
|
35
|
+
const features = asFeatures(inFeatures);
|
|
36
|
+
const backgrounds = asFeatures(inBackgrounds);
|
|
37
|
+
const ran = await runWith({ specl, features, backgrounds, addSteppers, world });
|
|
66
38
|
return { ...ran, world };
|
|
67
39
|
}
|
|
68
|
-
|
|
69
|
-
function getTestWorldWithOptions(protoOptions) {
|
|
40
|
+
export function getTestWorldWithOptions(protoOptions) {
|
|
70
41
|
const { world } = getDefaultWorld(0);
|
|
71
42
|
if (protoOptions) {
|
|
72
43
|
world.options = protoOptions.options;
|
|
@@ -74,36 +45,31 @@ function getTestWorldWithOptions(protoOptions) {
|
|
|
74
45
|
}
|
|
75
46
|
return world;
|
|
76
47
|
}
|
|
77
|
-
|
|
78
|
-
const asFeatures = (w) => w.map((i) => (0, features_1.withNameType)(i.path, i.content));
|
|
79
|
-
exports.asFeatures = asFeatures;
|
|
48
|
+
export const asFeatures = (w) => w.map((i) => withNameType(i.path, i.content));
|
|
80
49
|
// FIXME can't really do this without reproducing resolve
|
|
81
|
-
const asExpandedFeatures = (w) =>
|
|
82
|
-
const expanded =
|
|
50
|
+
export const asExpandedFeatures = (w) => asFeatures(w).map((i) => {
|
|
51
|
+
const expanded = featureSplit(i.content).map((a) => ({ line: a, feature: i }));
|
|
83
52
|
let a = { ...i, expanded };
|
|
84
53
|
delete a.content;
|
|
85
54
|
// a.featureLine = asFeatureLine()
|
|
86
55
|
return a;
|
|
87
56
|
});
|
|
88
|
-
|
|
89
|
-
function getDefaultWorld(sequence) {
|
|
57
|
+
export function getDefaultWorld(sequence) {
|
|
90
58
|
return {
|
|
91
59
|
world: {
|
|
92
|
-
timer: new
|
|
93
|
-
tag:
|
|
94
|
-
shared: new
|
|
95
|
-
logger: new
|
|
60
|
+
timer: new Timer(),
|
|
61
|
+
tag: getRunTag(sequence, 0, 0, 0),
|
|
62
|
+
shared: new WorldContext(getDefaultTag(sequence)),
|
|
63
|
+
logger: new Logger(process.env.HAIBUN_LOG_LEVEL ? { level: process.env.HAIBUN_LOG_LEVEL } : LOGGER_NOTHING),
|
|
96
64
|
runtime: {},
|
|
97
|
-
options: { DEST:
|
|
65
|
+
options: { DEST: DEFAULT_DEST },
|
|
98
66
|
extraOptions: {},
|
|
99
67
|
domains: [],
|
|
100
68
|
base: '/features/'
|
|
101
69
|
},
|
|
102
70
|
};
|
|
103
71
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
return (0, util_1.getRunTag)(sequence, 0, 0, -1, desc ? { desc } : undefined, false);
|
|
72
|
+
export function getDefaultTag(sequence, desc = undefined) {
|
|
73
|
+
return getRunTag(sequence, 0, 0, -1, desc ? { desc } : undefined, false);
|
|
107
74
|
}
|
|
108
|
-
exports.getDefaultTag = getDefaultTag;
|
|
109
75
|
//# sourceMappingURL=lib.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lib.js","sourceRoot":"","sources":["../../../src/lib/test/lib.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lib.js","sourceRoot":"","sources":["../../../src/lib/test/lib.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4E,YAAY,EAAW,MAAM,YAAY,CAAC;AAC7H,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACnH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,MAAM,EAAE,EAAE,cAAc,EAAE,MAAM,cAA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TResult, TSpecl, TWorld, TRuntime, TActionResultTopics, TActionResult, TFound, TTag, AStepper, TExtraOptions, CStepper, TTagValue, TFeatureResult } from '../defs';
|
|
1
|
+
import { TFeature, TNotOKActionResult, TOKActionResult, TResult, TSpecl, TWorld, TRuntime, TActionResultTopics, TActionResult, TFound, TTag, AStepper, TExtraOptions, CStepper, TTagValue, TFeatureResult } from '../defs.js';
|
|
2
2
|
export declare function use(module: string): Promise<any>;
|
|
3
3
|
export declare function checkModuleIsClass(re: any, module: string): void;
|
|
4
4
|
export declare function resultOutput(type: string | undefined, result: TResult): Promise<any>;
|
|
@@ -22,16 +22,16 @@ export declare function getDefaultOptions(): TSpecl;
|
|
|
22
22
|
export declare function getConfigFromBase(base: string): TSpecl | null;
|
|
23
23
|
export declare function getActionable(value: string): string;
|
|
24
24
|
export declare function describeSteppers(steppers: AStepper[]): string;
|
|
25
|
-
export declare function isLowerCase(str: string): boolean
|
|
25
|
+
export declare function isLowerCase(str: string): boolean;
|
|
26
26
|
export declare const sleep: (ms: number) => Promise<unknown>;
|
|
27
27
|
export declare function verifyExtraOptions(inExtraOptions: TExtraOptions, csteppers: CStepper[]): Promise<void>;
|
|
28
28
|
export declare function setWorldStepperOptions(steppers: AStepper[], world: TWorld): Promise<void>;
|
|
29
29
|
export declare function getPre(stepper: AStepper): string;
|
|
30
30
|
export declare function getStepperOptionValue(key: string, value: string, csteppers: CStepper[]): {
|
|
31
|
-
error?: string
|
|
32
|
-
env?: import("../defs").TOptions
|
|
31
|
+
error?: string;
|
|
32
|
+
env?: import("../defs.js").TOptions;
|
|
33
33
|
result?: any;
|
|
34
|
-
}
|
|
34
|
+
};
|
|
35
35
|
export declare function verifyRequiredOptions(steppers: CStepper[], options: TExtraOptions): Promise<void>;
|
|
36
36
|
export declare function getStepperOptionName(stepper: AStepper | CStepper, name: string): string;
|
|
37
37
|
export declare function getStepperOption(stepper: AStepper, name: string, extraOptions: TExtraOptions): string;
|
|
@@ -65,5 +65,3 @@ export declare const stringOrError: (val: string) => {
|
|
|
65
65
|
export declare function friendlyTime(d: Date): string;
|
|
66
66
|
export declare const shortNum: (n: number) => number;
|
|
67
67
|
export declare const getFeatureTitlesFromResults: (result: TFeatureResult) => string[];
|
|
68
|
-
export declare function spawn(command: string[], module: string, show?: boolean): void;
|
|
69
|
-
//# sourceMappingURL=index.d.ts.map
|