testeranto 0.79.5 → 0.79.6
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/TaskMan1.Dockerfile +1 -0
- package/package.json +1 -1
- package/dist/common/Features.js +0 -84
- package/dist/common/Node.js +0 -23
- package/dist/common/PM/index.js +0 -7
- package/dist/common/PM/main.js +0 -641
- package/dist/common/PM/node.js +0 -88
- package/dist/common/PM/web.js +0 -132
- package/dist/common/Project.js +0 -186
- package/dist/common/Puppeteer.js +0 -104
- package/dist/common/Reporter.js +0 -112
- package/dist/common/Scheduler.js +0 -1
- package/dist/common/SubPackages/puppeteer.js +0 -21
- package/dist/common/SubPackages/react/component/node.js +0 -19
- package/dist/common/SubPackages/react/component/web.js +0 -19
- package/dist/common/SubPackages/react/jsx/index.js +0 -25
- package/dist/common/SubPackages/react/jsx/node.js +0 -10
- package/dist/common/SubPackages/react/jsx/web.js +0 -10
- package/dist/common/SubPackages/react-dom/component/node.js +0 -101
- package/dist/common/SubPackages/react-dom/component/web.js +0 -93
- package/dist/common/SubPackages/react-dom/jsx/index.js +0 -2
- package/dist/common/SubPackages/react-dom/jsx/node.js +0 -39
- package/dist/common/SubPackages/react-dom/jsx/web.js +0 -118
- package/dist/common/SubPackages/react-test-renderer/MemoExoticComponent/node.js +0 -44
- package/dist/common/SubPackages/react-test-renderer/component/index.js +0 -2
- package/dist/common/SubPackages/react-test-renderer/component/interface.js +0 -68
- package/dist/common/SubPackages/react-test-renderer/component/node.js +0 -8
- package/dist/common/SubPackages/react-test-renderer/component/web.js +0 -8
- package/dist/common/SubPackages/react-test-renderer/fc/node.js +0 -50
- package/dist/common/SubPackages/react-test-renderer/fc/web.js +0 -50
- package/dist/common/SubPackages/react-test-renderer/jsx/index.js +0 -48
- package/dist/common/SubPackages/react-test-renderer/jsx/node.js +0 -10
- package/dist/common/SubPackages/react-test-renderer/jsx/web.js +0 -10
- package/dist/common/SubPackages/react-test-renderer/jsx-promised/index.js +0 -42
- package/dist/common/SubPackages/react-test-renderer/jsx-promised/node.js +0 -10
- package/dist/common/SubPackages/react-test-renderer/jsx-promised/web.js +0 -10
- package/dist/common/TaskManBackEnd.js +0 -174
- package/dist/common/Types.js +0 -2
- package/dist/common/Web.js +0 -39
- package/dist/common/esbuildConfigs/features.js +0 -14
- package/dist/common/esbuildConfigs/index.js +0 -21
- package/dist/common/esbuildConfigs/inputFilesPlugin.js +0 -49
- package/dist/common/esbuildConfigs/node.js +0 -39
- package/dist/common/esbuildConfigs/report.js +0 -13
- package/dist/common/esbuildConfigs/tests.js +0 -13
- package/dist/common/esbuildConfigs/web.js +0 -57
- package/dist/common/lib/abstractBase.js +0 -553
- package/dist/common/lib/basebuilder.js +0 -79
- package/dist/common/lib/classBuilder.js +0 -42
- package/dist/common/lib/core.js +0 -75
- package/dist/common/lib/index.js +0 -22
- package/dist/common/lib/types.js +0 -2
- package/dist/common/mongooseSchemas.js +0 -56
- package/dist/common/package.json +0 -3
- package/dist/common/preload.js +0 -15
- package/dist/common/puppeteerConfiger.js +0 -24
- package/dist/common/report.html.js +0 -31
- package/dist/common/tsconfig.common.tsbuildinfo +0 -1
- package/dist/common/utils.js +0 -16
- package/dist/common/web.html.js +0 -22
- package/dist/module/ExampleTab.js +0 -112
- package/dist/module/Features.js +0 -73
- package/dist/module/Node.js +0 -18
- package/dist/module/PM/index.js +0 -3
- package/dist/module/PM/main.js +0 -611
- package/dist/module/PM/node.js +0 -81
- package/dist/module/PM/web.js +0 -125
- package/dist/module/Project.js +0 -179
- package/dist/module/Puppeteer.js +0 -99
- package/dist/module/Reporter.js +0 -107
- package/dist/module/Scheduler.js +0 -1
- package/dist/module/SubPackages/puppeteer.js +0 -16
- package/dist/module/SubPackages/react/component/node.js +0 -14
- package/dist/module/SubPackages/react/component/web.js +0 -14
- package/dist/module/SubPackages/react/jsx/index.js +0 -19
- package/dist/module/SubPackages/react/jsx/node.js +0 -5
- package/dist/module/SubPackages/react/jsx/web.js +0 -5
- package/dist/module/SubPackages/react-dom/component/node.js +0 -93
- package/dist/module/SubPackages/react-dom/component/web.js +0 -88
- package/dist/module/SubPackages/react-dom/jsx/index.js +0 -1
- package/dist/module/SubPackages/react-dom/jsx/node.js +0 -31
- package/dist/module/SubPackages/react-dom/jsx/web.js +0 -90
- package/dist/module/SubPackages/react-test-renderer/MemoExoticComponent/node.js +0 -16
- package/dist/module/SubPackages/react-test-renderer/component/index.js +0 -1
- package/dist/module/SubPackages/react-test-renderer/component/interface.js +0 -39
- package/dist/module/SubPackages/react-test-renderer/component/node.js +0 -3
- package/dist/module/SubPackages/react-test-renderer/component/web.js +0 -3
- package/dist/module/SubPackages/react-test-renderer/fc/node.js +0 -22
- package/dist/module/SubPackages/react-test-renderer/fc/web.js +0 -22
- package/dist/module/SubPackages/react-test-renderer/jsx/index.js +0 -19
- package/dist/module/SubPackages/react-test-renderer/jsx/node.js +0 -5
- package/dist/module/SubPackages/react-test-renderer/jsx/web.js +0 -5
- package/dist/module/SubPackages/react-test-renderer/jsx-promised/index.js +0 -16
- package/dist/module/SubPackages/react-test-renderer/jsx-promised/node.js +0 -5
- package/dist/module/SubPackages/react-test-renderer/jsx-promised/web.js +0 -5
- package/dist/module/TaskManBackEnd.js +0 -169
- package/dist/module/TaskManFrontEnd.js +0 -600
- package/dist/module/Types.js +0 -1
- package/dist/module/Web.js +0 -34
- package/dist/module/esbuildConfigs/features.js +0 -12
- package/dist/module/esbuildConfigs/index.js +0 -19
- package/dist/module/esbuildConfigs/inputFilesPlugin.js +0 -44
- package/dist/module/esbuildConfigs/node.js +0 -34
- package/dist/module/esbuildConfigs/report.js +0 -11
- package/dist/module/esbuildConfigs/tests.js +0 -11
- package/dist/module/esbuildConfigs/web.js +0 -52
- package/dist/module/lib/abstractBase.js +0 -545
- package/dist/module/lib/basebuilder.js +0 -75
- package/dist/module/lib/classBuilder.js +0 -38
- package/dist/module/lib/core.js +0 -72
- package/dist/module/lib/index.js +0 -18
- package/dist/module/lib/types.js +0 -1
- package/dist/module/mongooseSchemas.js +0 -50
- package/dist/module/package.json +0 -3
- package/dist/module/preload.js +0 -15
- package/dist/module/puppeteerConfiger.js +0 -19
- package/dist/module/report.html.js +0 -29
- package/dist/module/tsconfig.module.tsbuildinfo +0 -1
- package/dist/module/utils.js +0 -9
- package/dist/module/web.html.js +0 -20
- package/dist/prebuild/Report.css +0 -11358
- package/dist/prebuild/Report.js +0 -37666
- package/dist/prebuild/TaskManBackEnd.mjs +0 -180
- package/dist/prebuild/TaskManFrontEnd.css +0 -12301
- package/dist/prebuild/TaskManFrontEnd.js +0 -81737
- package/dist/types/Features.d.ts +0 -68
- package/dist/types/Node.d.ts +0 -6
- package/dist/types/PM/index.d.ts +0 -20
- package/dist/types/PM/main.d.ts +0 -31
- package/dist/types/PM/node.d.ts +0 -27
- package/dist/types/PM/web.d.ts +0 -25
- package/dist/types/Project.d.ts +0 -7
- package/dist/types/Puppeteer.d.ts +0 -1
- package/dist/types/Reporter.d.ts +0 -1
- package/dist/types/Scheduler.d.ts +0 -0
- package/dist/types/SubPackages/puppeteer.d.ts +0 -6
- package/dist/types/SubPackages/react/component/node.d.ts +0 -7
- package/dist/types/SubPackages/react/component/web.d.ts +0 -7
- package/dist/types/SubPackages/react/jsx/index.d.ts +0 -12
- package/dist/types/SubPackages/react/jsx/node.d.ts +0 -4
- package/dist/types/SubPackages/react/jsx/web.d.ts +0 -4
- package/dist/types/SubPackages/react-dom/component/node.d.ts +0 -12
- package/dist/types/SubPackages/react-dom/component/web.d.ts +0 -11
- package/dist/types/SubPackages/react-dom/jsx/index.d.ts +0 -6
- package/dist/types/SubPackages/react-dom/jsx/node.d.ts +0 -6
- package/dist/types/SubPackages/react-dom/jsx/web.d.ts +0 -5
- package/dist/types/SubPackages/react-test-renderer/MemoExoticComponent/node.d.ts +0 -5
- package/dist/types/SubPackages/react-test-renderer/component/index.d.ts +0 -13
- package/dist/types/SubPackages/react-test-renderer/component/interface.d.ts +0 -9
- package/dist/types/SubPackages/react-test-renderer/component/node.d.ts +0 -8
- package/dist/types/SubPackages/react-test-renderer/component/web.d.ts +0 -3
- package/dist/types/SubPackages/react-test-renderer/fc/node.d.ts +0 -8
- package/dist/types/SubPackages/react-test-renderer/fc/web.d.ts +0 -8
- package/dist/types/SubPackages/react-test-renderer/jsx/index.d.ts +0 -16
- package/dist/types/SubPackages/react-test-renderer/jsx/node.d.ts +0 -8
- package/dist/types/SubPackages/react-test-renderer/jsx/web.d.ts +0 -8
- package/dist/types/SubPackages/react-test-renderer/jsx-promised/index.d.ts +0 -15
- package/dist/types/SubPackages/react-test-renderer/jsx-promised/node.d.ts +0 -4
- package/dist/types/SubPackages/react-test-renderer/jsx-promised/web.d.ts +0 -4
- package/dist/types/TaskManBackEnd.d.ts +0 -1
- package/dist/types/Types.d.ts +0 -50
- package/dist/types/Web.d.ts +0 -6
- package/dist/types/esbuildConfigs/features.d.ts +0 -4
- package/dist/types/esbuildConfigs/index.d.ts +0 -4
- package/dist/types/esbuildConfigs/inputFilesPlugin.d.ts +0 -5
- package/dist/types/esbuildConfigs/node.d.ts +0 -4
- package/dist/types/esbuildConfigs/report.d.ts +0 -4
- package/dist/types/esbuildConfigs/tests.d.ts +0 -4
- package/dist/types/esbuildConfigs/web.d.ts +0 -4
- package/dist/types/lib/abstractBase.d.ts +0 -104
- package/dist/types/lib/basebuilder.d.ts +0 -27
- package/dist/types/lib/classBuilder.d.ts +0 -7
- package/dist/types/lib/core.d.ts +0 -8
- package/dist/types/lib/index.d.ts +0 -59
- package/dist/types/lib/types.d.ts +0 -64
- package/dist/types/mongooseSchemas.d.ts +0 -124
- package/dist/types/preload.d.ts +0 -0
- package/dist/types/puppeteerConfiger.d.ts +0 -4
- package/dist/types/report.html.d.ts +0 -2
- package/dist/types/tsconfig.types.tsbuildinfo +0 -1
- package/dist/types/utils.d.ts +0 -2
- package/dist/types/web.html.d.ts +0 -2
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { IBaseTest } from "../Types";
|
|
2
|
-
import { PM } from "../PM/index.js";
|
|
3
|
-
import { ITTestResourceConfiguration, ITestArtifactory, ITLog } from ".";
|
|
4
|
-
export declare type IGivens<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = Record<string, BaseGiven<ITestShape>>;
|
|
5
|
-
export declare abstract class BaseSuite<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> {
|
|
6
|
-
name: string;
|
|
7
|
-
givens: IGivens<ITestShape>;
|
|
8
|
-
checks: BaseCheck<ITestShape>[];
|
|
9
|
-
store: ITestShape["istore"];
|
|
10
|
-
fails: BaseGiven<ITestShape>[];
|
|
11
|
-
testResourceConfiguration: ITTestResourceConfiguration;
|
|
12
|
-
index: number;
|
|
13
|
-
constructor(name: string, index: number, givens?: IGivens<ITestShape>, checks?: BaseCheck<ITestShape>[]);
|
|
14
|
-
toObj(): {
|
|
15
|
-
name: string;
|
|
16
|
-
givens: {
|
|
17
|
-
name: string;
|
|
18
|
-
whens: {
|
|
19
|
-
name: string;
|
|
20
|
-
error: boolean;
|
|
21
|
-
}[];
|
|
22
|
-
thens: {
|
|
23
|
-
name: string;
|
|
24
|
-
error: boolean;
|
|
25
|
-
}[];
|
|
26
|
-
error: (string | Error | undefined)[] | null;
|
|
27
|
-
features: string[];
|
|
28
|
-
}[];
|
|
29
|
-
fails: BaseGiven<ITestShape>[];
|
|
30
|
-
};
|
|
31
|
-
setup(s: ITestShape["iinput"], artifactory: ITestArtifactory, tr: ITTestResourceConfiguration, pm: PM): Promise<ITestShape["isubject"]>;
|
|
32
|
-
assertThat(t: ITestShape["then"]): unknown;
|
|
33
|
-
afterAll(store: ITestShape["istore"], artifactory: ITestArtifactory, pm: PM): ITestShape["istore"];
|
|
34
|
-
run(input: ITestShape["iinput"], testResourceConfiguration: ITTestResourceConfiguration, artifactory: (fPath: string, value: unknown) => void, tLog: (...string: any[]) => void, pm: PM): Promise<BaseSuite<ITestShape>>;
|
|
35
|
-
}
|
|
36
|
-
export declare abstract class BaseGiven<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> {
|
|
37
|
-
name: string;
|
|
38
|
-
features: string[];
|
|
39
|
-
whens: BaseWhen<ITestShape>[];
|
|
40
|
-
thens: BaseThen<ITestShape>[];
|
|
41
|
-
error: Error;
|
|
42
|
-
fail: any;
|
|
43
|
-
store: ITestShape["istore"];
|
|
44
|
-
recommendedFsPath: string;
|
|
45
|
-
givenCB: ITestShape["given"];
|
|
46
|
-
initialValues: any;
|
|
47
|
-
constructor(name: string, features: string[], whens: BaseWhen<ITestShape>[], thens: BaseThen<ITestShape>[], givenCB: ITestShape["given"], initialValues: any);
|
|
48
|
-
beforeAll(store: ITestShape["istore"], artifactory: ITestArtifactory): ITestShape["istore"];
|
|
49
|
-
toObj(): {
|
|
50
|
-
name: string;
|
|
51
|
-
whens: {
|
|
52
|
-
name: string;
|
|
53
|
-
error: boolean;
|
|
54
|
-
}[];
|
|
55
|
-
thens: {
|
|
56
|
-
name: string;
|
|
57
|
-
error: boolean;
|
|
58
|
-
}[];
|
|
59
|
-
error: (string | Error | undefined)[] | null;
|
|
60
|
-
features: string[];
|
|
61
|
-
};
|
|
62
|
-
abstract givenThat(subject: ITestShape["isubject"], testResourceConfiguration: any, artifactory: ITestArtifactory, givenCB: ITestShape["given"], pm: PM): Promise<ITestShape["istore"]>;
|
|
63
|
-
afterEach(store: ITestShape["istore"], key: string, artifactory: ITestArtifactory, pm: PM): Promise<unknown>;
|
|
64
|
-
give(subject: ITestShape["isubject"], key: string, testResourceConfiguration: any, tester: (t: Awaited<ITestShape["then"]> | undefined) => boolean, artifactory: ITestArtifactory, tLog: ITLog, pm: PM, suiteNdx: number): Promise<ITestShape["istore"]>;
|
|
65
|
-
}
|
|
66
|
-
export declare abstract class BaseWhen<ITestShape extends IBaseTest> {
|
|
67
|
-
name: string;
|
|
68
|
-
whenCB: (x: ITestShape["iselection"]) => ITestShape["then"];
|
|
69
|
-
error: boolean;
|
|
70
|
-
constructor(name: string, whenCB: (xyz: ITestShape["iselection"]) => ITestShape["then"]);
|
|
71
|
-
abstract andWhen(store: ITestShape["istore"], whenCB: (x: ITestShape["iselection"]) => ITestShape["then"], testResource: any, pm: PM): any;
|
|
72
|
-
toObj(): {
|
|
73
|
-
name: string;
|
|
74
|
-
error: boolean;
|
|
75
|
-
};
|
|
76
|
-
test(store: ITestShape["istore"], testResourceConfiguration: any, tLog: ITLog, pm: PM, key: string): Promise<any>;
|
|
77
|
-
}
|
|
78
|
-
export declare abstract class BaseThen<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> {
|
|
79
|
-
name: string;
|
|
80
|
-
thenCB: (storeState: ITestShape["iselection"]) => ITestShape["then"];
|
|
81
|
-
error: boolean;
|
|
82
|
-
constructor(name: string, thenCB: (val: ITestShape["iselection"]) => ITestShape["then"]);
|
|
83
|
-
toObj(): {
|
|
84
|
-
name: string;
|
|
85
|
-
error: boolean;
|
|
86
|
-
};
|
|
87
|
-
abstract butThen(store: ITestShape["istore"], thenCB: any, testResourceConfiguration: ITTestResourceConfiguration, pm: PM): Promise<ITestShape["iselection"]>;
|
|
88
|
-
test(store: ITestShape["istore"], testResourceConfiguration: any, tLog: ITLog, pm: PM, filepath: string): Promise<ITestShape["then"] | undefined>;
|
|
89
|
-
}
|
|
90
|
-
export declare abstract class BaseCheck<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> {
|
|
91
|
-
name: string;
|
|
92
|
-
features: string[];
|
|
93
|
-
checkCB: (whens: any, thens: any) => any;
|
|
94
|
-
whens: {
|
|
95
|
-
[K in keyof ITestShape["whens"]]: (p: any, tc: any) => BaseWhen<ITestShape>;
|
|
96
|
-
};
|
|
97
|
-
thens: {
|
|
98
|
-
[K in keyof ITestShape["thens"]]: (p: any, tc: any) => BaseThen<ITestShape>;
|
|
99
|
-
};
|
|
100
|
-
constructor(name: string, features: string[], checkCB: (whens: any, thens: any) => any, whens: any, thens: any);
|
|
101
|
-
abstract checkThat(subject: ITestShape["isubject"], testResourceConfiguration: any, artifactory: ITestArtifactory): Promise<ITestShape["istore"]>;
|
|
102
|
-
afterEach(store: ITestShape["istore"], key: string, cb: any, pm: PM): Promise<unknown>;
|
|
103
|
-
check(subject: ITestShape["isubject"], key: string, testResourceConfiguration: any, tester: any, artifactory: ITestArtifactory, tLog: ITLog, pm: PM): Promise<void>;
|
|
104
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ITTestResourceRequest, ITestJob } from ".";
|
|
2
|
-
import { IBaseTest, ITestSpecification } from "../Types.js";
|
|
3
|
-
import { ISuiteKlasser, IGivenKlasser, IWhenKlasser, IThenKlasser, ICheckKlasser } from "./types.js";
|
|
4
|
-
import { BaseCheck, BaseWhen, BaseThen, BaseGiven } from "./abstractBase.js";
|
|
5
|
-
import { PM } from "../PM/index.js";
|
|
6
|
-
export declare abstract class BaseBuilder<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>, SuiteExtensions, GivenExtensions, WhenExtensions, ThenExtensions, CheckExtensions> {
|
|
7
|
-
readonly input: ITestShape["iinput"];
|
|
8
|
-
specs: any;
|
|
9
|
-
assertThis: (t: ITestShape["then"]) => {};
|
|
10
|
-
testResourceRequirement: ITTestResourceRequest;
|
|
11
|
-
artifacts: Promise<unknown>[];
|
|
12
|
-
testJobs: ITestJob[];
|
|
13
|
-
testSpecification: ITestSpecification<ITestShape>;
|
|
14
|
-
suitesOverrides: Record<keyof SuiteExtensions, ISuiteKlasser<ITestShape>>;
|
|
15
|
-
givenOverides: Record<keyof GivenExtensions, IGivenKlasser<ITestShape>>;
|
|
16
|
-
whenOverides: Record<keyof WhenExtensions, IWhenKlasser<ITestShape>>;
|
|
17
|
-
thenOverides: Record<keyof ThenExtensions, IThenKlasser<ITestShape>>;
|
|
18
|
-
checkOverides: Record<keyof CheckExtensions, ICheckKlasser<ITestShape>>;
|
|
19
|
-
puppetMaster: PM;
|
|
20
|
-
constructor(input: ITestShape["iinput"], suitesOverrides: Record<keyof SuiteExtensions, ISuiteKlasser<ITestShape>>, givenOverides: Record<keyof GivenExtensions, IGivenKlasser<ITestShape>>, whenOverides: Record<keyof WhenExtensions, IWhenKlasser<ITestShape>>, thenOverides: Record<keyof ThenExtensions, IThenKlasser<ITestShape>>, checkOverides: Record<keyof CheckExtensions, ICheckKlasser<ITestShape>>, testResourceRequirement: ITTestResourceRequest, testSpecification: any);
|
|
21
|
-
Specs(): any;
|
|
22
|
-
Suites(): Record<keyof SuiteExtensions, ISuiteKlasser<ITestShape>>;
|
|
23
|
-
Given(): Record<keyof GivenExtensions, (name: string, features: string[], whens: BaseWhen<ITestShape>[], thens: BaseThen<ITestShape>[], gcb: any) => BaseGiven<ITestShape>>;
|
|
24
|
-
When(): Record<keyof WhenExtensions, (arg0: ITestShape["istore"], ...arg1: any) => BaseWhen<ITestShape>>;
|
|
25
|
-
Then(): Record<keyof ThenExtensions, (selection: ITestShape["iselection"], expectation: any) => BaseThen<ITestShape>>;
|
|
26
|
-
Check(): Record<keyof CheckExtensions, (feature: string, callback: (whens: any, thens: any) => any, whens: any, thens: any, x: any) => BaseCheck<ITestShape>>;
|
|
27
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IBaseTest, ITestImplementation, ITestSpecification } from "../Types.js";
|
|
2
|
-
import { BaseBuilder } from "./basebuilder.js";
|
|
3
|
-
import { ISuiteKlasser, IGivenKlasser, IWhenKlasser, IThenKlasser, ICheckKlasser } from "./types.js";
|
|
4
|
-
import { ITTestResourceRequest } from "./index.js";
|
|
5
|
-
export declare abstract class ClassBuilder<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> extends BaseBuilder<ITestShape, any, any, any, any, any> {
|
|
6
|
-
constructor(testImplementation: ITestImplementation<ITestShape, any>, testSpecification: ITestSpecification<ITestShape>, input: ITestShape["iinput"], suiteKlasser: ISuiteKlasser<ITestShape>, givenKlasser: IGivenKlasser<ITestShape>, whenKlasser: IWhenKlasser<ITestShape>, thenKlasser: IThenKlasser<ITestShape>, checkKlasser: ICheckKlasser<ITestShape>, testResourceRequirement: ITTestResourceRequest);
|
|
7
|
-
}
|
package/dist/types/lib/core.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IBaseTest, ITestSpecification, ITestImplementation } from "../Types.js";
|
|
2
|
-
import { ITestInterface } from "./types.js";
|
|
3
|
-
import { ITTestResourceRequest } from "./index.js";
|
|
4
|
-
import { ClassBuilder } from "./classBuilder.js";
|
|
5
|
-
export default abstract class Testeranto<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> extends ClassBuilder<ITestShape> {
|
|
6
|
-
constructor(input: ITestShape["iinput"], testSpecification: ITestSpecification<ITestShape>, testImplementation: ITestImplementation<ITestShape>, testResourceRequirement: ITTestResourceRequest | undefined, testInterface: Partial<ITestInterface<ITestShape>>);
|
|
7
|
-
abstract receiveTestResourceConfig(partialTestResource: string): any;
|
|
8
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { PM } from "../PM/index.js";
|
|
2
|
-
import { IBaseTest } from "../Types.js";
|
|
3
|
-
import { IGivens, BaseCheck, BaseSuite, BaseWhen, BaseThen } from "./abstractBase.js";
|
|
4
|
-
import { ITestInterface } from "./types.js";
|
|
5
|
-
export declare const BaseTestInterface: ITestInterface<IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>;
|
|
6
|
-
export declare const DefaultTestInterface: (p: Partial<ITestInterface<any>>) => ITestInterface<any>;
|
|
7
|
-
export declare type ITTestResourceConfiguration = {
|
|
8
|
-
name: string;
|
|
9
|
-
fs: string;
|
|
10
|
-
ports: number[];
|
|
11
|
-
browserWSEndpoint: string;
|
|
12
|
-
};
|
|
13
|
-
export declare type ITTestResourceRequirement = {
|
|
14
|
-
name: string;
|
|
15
|
-
ports: number;
|
|
16
|
-
fs: string;
|
|
17
|
-
};
|
|
18
|
-
export declare type ITTestResourceRequest = {
|
|
19
|
-
ports: number;
|
|
20
|
-
};
|
|
21
|
-
export declare type ITLog = (...string: any[]) => void;
|
|
22
|
-
export declare type ILogWriter = {
|
|
23
|
-
createWriteStream: (line: string) => any | any;
|
|
24
|
-
writeFileSync: (fp: string, contents: string) => any;
|
|
25
|
-
mkdirSync: () => any;
|
|
26
|
-
testArtiFactoryfileWriter: (tLog: ITLog, n: (Promise: any) => void) => (fPath: string, value: unknown) => void;
|
|
27
|
-
};
|
|
28
|
-
export declare type ITestArtificer = (key: string, data: any) => void;
|
|
29
|
-
declare type ITest = {
|
|
30
|
-
toObj(): object;
|
|
31
|
-
name: string;
|
|
32
|
-
givens: IGivens<IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>;
|
|
33
|
-
checks: BaseCheck<IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>[];
|
|
34
|
-
testResourceConfiguration: ITTestResourceConfiguration;
|
|
35
|
-
};
|
|
36
|
-
export declare type ITestJob<T = PM> = {
|
|
37
|
-
toObj(): object;
|
|
38
|
-
test: ITest;
|
|
39
|
-
runner: (x: ITTestResourceConfiguration, t: ITLog) => Promise<BaseSuite<IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>>>;
|
|
40
|
-
testResourceRequirement: ITTestResourceRequirement;
|
|
41
|
-
receiveTestResourceConfig: (pm: PM) => Promise<{
|
|
42
|
-
failed: number;
|
|
43
|
-
artifacts: Promise<unknown>[];
|
|
44
|
-
logPromise: Promise<unknown>;
|
|
45
|
-
}>;
|
|
46
|
-
};
|
|
47
|
-
export declare type ITestResults = Promise<{
|
|
48
|
-
test: ITest;
|
|
49
|
-
}>[];
|
|
50
|
-
export declare const defaultTestResourceRequirement: ITTestResourceRequest;
|
|
51
|
-
export declare type ITestArtifactory = (key: string, value: unknown) => unknown;
|
|
52
|
-
export declare type ITestCheckCallback<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = {
|
|
53
|
-
[K in keyof ITestShape["checks"]]: (name: string, features: string[], callbackA: (whens: {
|
|
54
|
-
[K in keyof ITestShape["whens"]]: (...unknown: any[]) => BaseWhen<ITestShape>;
|
|
55
|
-
}, thens: {
|
|
56
|
-
[K in keyof ITestShape["thens"]]: (...unknown: any[]) => BaseThen<ITestShape>;
|
|
57
|
-
}) => Promise<any>, ...xtrasA: ITestShape["checks"][K]) => BaseCheck<ITestShape>;
|
|
58
|
-
};
|
|
59
|
-
export {};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { IBaseTest } from "../Types";
|
|
2
|
-
import { IGivens, BaseCheck, BaseSuite, BaseGiven, BaseWhen, BaseThen } from "./abstractBase";
|
|
3
|
-
import { ITTestResourceConfiguration, ITestArtificer } from ".";
|
|
4
|
-
import { PM } from "../PM/index";
|
|
5
|
-
export declare type IRunTime = `node` | `web`;
|
|
6
|
-
export declare type ITestTypes = [string, IRunTime, {
|
|
7
|
-
ports: number;
|
|
8
|
-
}, ITestTypes[]];
|
|
9
|
-
export declare type IJsonConfig = {
|
|
10
|
-
outdir: string;
|
|
11
|
-
tests: ITestTypes[];
|
|
12
|
-
features: string;
|
|
13
|
-
botEmail: string;
|
|
14
|
-
};
|
|
15
|
-
export declare type IBaseConfig = {
|
|
16
|
-
clearScreen: boolean;
|
|
17
|
-
debugger: boolean;
|
|
18
|
-
devMode: boolean;
|
|
19
|
-
externals: string[];
|
|
20
|
-
features: string;
|
|
21
|
-
minify: boolean;
|
|
22
|
-
nodePlugins: any[];
|
|
23
|
-
outbase: string;
|
|
24
|
-
outdir: string;
|
|
25
|
-
ports: string[];
|
|
26
|
-
tests: ITestTypes[];
|
|
27
|
-
webPlugins: any[];
|
|
28
|
-
botEmail: string;
|
|
29
|
-
};
|
|
30
|
-
export declare type IBuiltConfig = {
|
|
31
|
-
buildDir: string;
|
|
32
|
-
} & IBaseConfig;
|
|
33
|
-
export declare type IWebTestInterface<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = {
|
|
34
|
-
assertThis: (x: ITestShape["then"]) => void;
|
|
35
|
-
andWhen: (store: ITestShape["istore"], whenCB: ITestShape["when"], testResource: ITTestResourceConfiguration, utils: PM) => Promise<ITestShape["istore"]>;
|
|
36
|
-
butThen: (store: ITestShape["istore"], thenCB: any, testResource: ITTestResourceConfiguration) => Promise<ITestShape["iselection"]>;
|
|
37
|
-
afterAll: (store: ITestShape["istore"], artificer: ITestArtificer, utils: PM) => any;
|
|
38
|
-
afterEach: (store: ITestShape["istore"], key: string, artificer: ITestArtificer, utils: PM) => Promise<unknown>;
|
|
39
|
-
beforeAll: (input: ITestShape["iinput"], testResource: ITTestResourceConfiguration, artificer: ITestArtificer, utils: PM) => Promise<ITestShape["isubject"]>;
|
|
40
|
-
beforeEach: (subject: ITestShape["isubject"], initializer: (c?: any) => ITestShape["given"], artificer: ITestArtificer, testResource: ITTestResourceConfiguration, initialValues: any, utils: PM) => Promise<ITestShape["istore"]>;
|
|
41
|
-
};
|
|
42
|
-
export declare type INodeTestInterface<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = {
|
|
43
|
-
assertThis: (x: ITestShape["then"]) => void;
|
|
44
|
-
andWhen: (store: ITestShape["istore"], whenCB: ITestShape["when"], testResource: ITTestResourceConfiguration, utils: PM) => Promise<ITestShape["istore"]>;
|
|
45
|
-
butThen: (store: ITestShape["istore"], thenCB: any, testResource: ITTestResourceConfiguration, utils: PM) => Promise<ITestShape["iselection"]>;
|
|
46
|
-
afterAll: (store: ITestShape["istore"], artificer: ITestArtificer, pm: PM) => any;
|
|
47
|
-
afterEach: (store: ITestShape["istore"], key: string, artificer: ITestArtificer, pm: PM) => Promise<unknown>;
|
|
48
|
-
beforeAll: (input: ITestShape["iinput"], testResource: ITTestResourceConfiguration, artificer: ITestArtificer, pm: PM) => Promise<ITestShape["isubject"]>;
|
|
49
|
-
beforeEach: (subject: ITestShape["isubject"], initializer: (c?: any) => ITestShape["given"], artificer: ITestArtificer, testResource: ITTestResourceConfiguration, initialValues: any, pm: PM) => Promise<ITestShape["istore"]>;
|
|
50
|
-
};
|
|
51
|
-
export declare type ITestInterface<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = {
|
|
52
|
-
assertThis: (x: ITestShape["then"]) => void;
|
|
53
|
-
andWhen: (store: ITestShape["istore"], whenCB: ITestShape["when"], testResource: ITTestResourceConfiguration, pm: PM) => Promise<ITestShape["istore"]>;
|
|
54
|
-
butThen: (store: ITestShape["istore"], thenCB: any, testResource: ITTestResourceConfiguration, pm: PM) => Promise<ITestShape["iselection"]>;
|
|
55
|
-
afterAll: (store: ITestShape["istore"], artificer: ITestArtificer, pm: PM) => any;
|
|
56
|
-
afterEach: (store: ITestShape["istore"], key: string, artificer: ITestArtificer, pm: PM) => Promise<unknown>;
|
|
57
|
-
beforeAll: (input: ITestShape["iinput"], testResource: ITTestResourceConfiguration, artificer: ITestArtificer, pm: PM) => Promise<ITestShape["isubject"]>;
|
|
58
|
-
beforeEach: (subject: ITestShape["isubject"], initializer: (c?: any) => ITestShape["given"], artificer: ITestArtificer, testResource: ITTestResourceConfiguration, initialValues: any, pm: PM) => Promise<ITestShape["istore"]>;
|
|
59
|
-
};
|
|
60
|
-
export declare type ISuiteKlasser<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = (name: string, index: number, givens: IGivens<ITestShape>, checks: BaseCheck<ITestShape>[]) => BaseSuite<ITestShape>;
|
|
61
|
-
export declare type IGivenKlasser<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = (name: any, features: any, whens: any, thens: any, givenCB: any) => BaseGiven<ITestShape>;
|
|
62
|
-
export declare type IWhenKlasser<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = (s: any, o: any) => BaseWhen<ITestShape>;
|
|
63
|
-
export declare type IThenKlasser<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = (s: any, o: any) => BaseThen<ITestShape>;
|
|
64
|
-
export declare type ICheckKlasser<ITestShape extends IBaseTest<unknown, unknown, unknown, unknown, unknown, unknown, unknown, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>, Record<string, any>>> = (n: any, f: any, cb: any, w: any, t: any) => BaseCheck<ITestShape>;
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import mongoose from "mongoose";
|
|
2
|
-
export interface IUser {
|
|
3
|
-
email: string;
|
|
4
|
-
channels: string[];
|
|
5
|
-
dmgroups: string[];
|
|
6
|
-
}
|
|
7
|
-
export declare const userSchema: mongoose.Schema<IUser, mongoose.Model<IUser, any, any, any, mongoose.Document<unknown, any, IUser> & IUser & {
|
|
8
|
-
_id: mongoose.Types.ObjectId;
|
|
9
|
-
} & {
|
|
10
|
-
__v: number;
|
|
11
|
-
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IUser, mongoose.Document<unknown, {}, mongoose.FlatRecord<IUser>> & mongoose.FlatRecord<IUser> & {
|
|
12
|
-
_id: mongoose.Types.ObjectId;
|
|
13
|
-
} & {
|
|
14
|
-
__v: number;
|
|
15
|
-
}>;
|
|
16
|
-
export interface IKanban {
|
|
17
|
-
title: string;
|
|
18
|
-
}
|
|
19
|
-
export declare const kanbanSchema: mongoose.Schema<IKanban, mongoose.Model<IKanban, any, any, any, mongoose.Document<unknown, any, IKanban> & IKanban & {
|
|
20
|
-
_id: mongoose.Types.ObjectId;
|
|
21
|
-
} & {
|
|
22
|
-
__v: number;
|
|
23
|
-
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IKanban, mongoose.Document<unknown, {}, mongoose.FlatRecord<IKanban>> & mongoose.FlatRecord<IKanban> & {
|
|
24
|
-
_id: mongoose.Types.ObjectId;
|
|
25
|
-
} & {
|
|
26
|
-
__v: number;
|
|
27
|
-
}>;
|
|
28
|
-
export interface IGantt {
|
|
29
|
-
name: string;
|
|
30
|
-
type: "task" | "milestone" | "project";
|
|
31
|
-
start: Date;
|
|
32
|
-
end: Date;
|
|
33
|
-
}
|
|
34
|
-
export declare const ganttSchema: mongoose.Schema<IGantt, mongoose.Model<IGantt, any, any, any, mongoose.Document<unknown, any, IGantt> & IGantt & {
|
|
35
|
-
_id: mongoose.Types.ObjectId;
|
|
36
|
-
} & {
|
|
37
|
-
__v: number;
|
|
38
|
-
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IGantt, mongoose.Document<unknown, {}, mongoose.FlatRecord<IGantt>> & mongoose.FlatRecord<IGantt> & {
|
|
39
|
-
_id: mongoose.Types.ObjectId;
|
|
40
|
-
} & {
|
|
41
|
-
__v: number;
|
|
42
|
-
}>;
|
|
43
|
-
export interface IFeature {
|
|
44
|
-
title: string;
|
|
45
|
-
state: string;
|
|
46
|
-
owner: {
|
|
47
|
-
type: mongoose.Schema.Types.ObjectId;
|
|
48
|
-
required: true;
|
|
49
|
-
ref: "User";
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
export declare const featuresSchema: mongoose.Schema<IFeature, mongoose.Model<IFeature, any, any, any, mongoose.Document<unknown, any, IFeature> & IFeature & {
|
|
53
|
-
_id: mongoose.Types.ObjectId;
|
|
54
|
-
} & {
|
|
55
|
-
__v: number;
|
|
56
|
-
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IFeature, mongoose.Document<unknown, {}, mongoose.FlatRecord<IFeature>> & mongoose.FlatRecord<IFeature> & {
|
|
57
|
-
_id: mongoose.Types.ObjectId;
|
|
58
|
-
} & {
|
|
59
|
-
__v: number;
|
|
60
|
-
}>;
|
|
61
|
-
export declare const channelsFeature: mongoose.Schema<IChatChannel, mongoose.Model<IChatChannel, any, any, any, mongoose.Document<unknown, any, IChatChannel> & IChatChannel & {
|
|
62
|
-
_id: mongoose.Types.ObjectId;
|
|
63
|
-
} & {
|
|
64
|
-
__v: number;
|
|
65
|
-
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IChatChannel, mongoose.Document<unknown, {}, mongoose.FlatRecord<IChatChannel>> & mongoose.FlatRecord<IChatChannel> & {
|
|
66
|
-
_id: mongoose.Types.ObjectId;
|
|
67
|
-
} & {
|
|
68
|
-
__v: number;
|
|
69
|
-
}>;
|
|
70
|
-
export declare const chatCatMessageSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
71
|
-
user: mongoose.Types.ObjectId;
|
|
72
|
-
room: mongoose.Types.ObjectId;
|
|
73
|
-
timestamp: NativeDate;
|
|
74
|
-
text?: string | null | undefined;
|
|
75
|
-
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
76
|
-
user: mongoose.Types.ObjectId;
|
|
77
|
-
room: mongoose.Types.ObjectId;
|
|
78
|
-
timestamp: NativeDate;
|
|
79
|
-
text?: string | null | undefined;
|
|
80
|
-
}>> & mongoose.FlatRecord<{
|
|
81
|
-
user: mongoose.Types.ObjectId;
|
|
82
|
-
room: mongoose.Types.ObjectId;
|
|
83
|
-
timestamp: NativeDate;
|
|
84
|
-
text?: string | null | undefined;
|
|
85
|
-
}> & {
|
|
86
|
-
_id: mongoose.Types.ObjectId;
|
|
87
|
-
} & {
|
|
88
|
-
__v: number;
|
|
89
|
-
}>;
|
|
90
|
-
export interface IChatChannel {
|
|
91
|
-
users: string[];
|
|
92
|
-
messages: [{
|
|
93
|
-
type: mongoose.Schema.Types.ObjectId;
|
|
94
|
-
ref: "Message";
|
|
95
|
-
}];
|
|
96
|
-
}
|
|
97
|
-
export interface IChatCatHuddle {
|
|
98
|
-
users: {
|
|
99
|
-
type: String;
|
|
100
|
-
unique: true;
|
|
101
|
-
required: true;
|
|
102
|
-
}[];
|
|
103
|
-
}
|
|
104
|
-
export declare const HuddleSchema: mongoose.Schema<IChatCatHuddle, mongoose.Model<IChatCatHuddle, any, any, any, mongoose.Document<unknown, any, IChatCatHuddle> & IChatCatHuddle & {
|
|
105
|
-
_id: mongoose.Types.ObjectId;
|
|
106
|
-
} & {
|
|
107
|
-
__v: number;
|
|
108
|
-
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IChatCatHuddle, mongoose.Document<unknown, {}, mongoose.FlatRecord<IChatCatHuddle>> & mongoose.FlatRecord<IChatCatHuddle> & {
|
|
109
|
-
_id: mongoose.Types.ObjectId;
|
|
110
|
-
} & {
|
|
111
|
-
__v: number;
|
|
112
|
-
}>;
|
|
113
|
-
export interface IChatCatRoom {
|
|
114
|
-
name: string;
|
|
115
|
-
}
|
|
116
|
-
export declare const RoomSchema: mongoose.Schema<IChatCatRoom, mongoose.Model<IChatCatRoom, any, any, any, mongoose.Document<unknown, any, IChatCatRoom> & IChatCatRoom & {
|
|
117
|
-
_id: mongoose.Types.ObjectId;
|
|
118
|
-
} & {
|
|
119
|
-
__v: number;
|
|
120
|
-
}, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, IChatCatRoom, mongoose.Document<unknown, {}, mongoose.FlatRecord<IChatCatRoom>> & mongoose.FlatRecord<IChatCatRoom> & {
|
|
121
|
-
_id: mongoose.Types.ObjectId;
|
|
122
|
-
} & {
|
|
123
|
-
__v: number;
|
|
124
|
-
}>;
|
package/dist/types/preload.d.ts
DELETED
|
File without changes
|