testeranto 0.74.0 → 0.79.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +5 -2
- package/Bundle.Dockerfile +52 -0
- package/README.md +25 -24
- package/build-tests.ts +16 -0
- package/dist/common/build-tests.js +38 -0
- package/dist/common/init-docs.js +8 -0
- package/dist/common/run-tests.js +34 -0
- package/dist/common/src/Aider.js +96 -0
- package/dist/common/src/Init.js +10 -0
- package/dist/common/{Node.js → src/Node.js} +1 -0
- package/dist/common/src/PM/index.js +7 -0
- package/dist/common/{PM → src/PM}/main.js +287 -10
- package/dist/common/{PM → src/PM}/node.js +4 -0
- package/dist/common/{PM → src/PM}/web.js +3 -0
- package/dist/common/{Project.js → src/Project.js} +15 -57
- package/dist/common/{Puppeteer.js → src/Puppeteer.js} +65 -26
- package/dist/common/{SubPackages → src/SubPackages}/react-dom/component/web.js +5 -25
- package/dist/common/src/SubPackages/react-dom/jsx/web.js +117 -0
- package/dist/common/{SubPackages/react-test-renderer/component/index.js → src/SubPackages/react-test-renderer/component/interface.js} +0 -20
- package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/component/node.js +2 -2
- package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/component/web.js +2 -2
- package/dist/common/{Types.js → src/Types.js} +0 -2
- package/dist/common/{esbuildConfigs → src/esbuildConfigs}/index.js +1 -0
- package/dist/common/src/esbuildConfigs/inputFilesPlugin.js +52 -0
- package/dist/common/{esbuildConfigs → src/esbuildConfigs}/node.js +5 -1
- package/dist/common/src/esbuildConfigs/report.js +14 -0
- package/dist/common/{esbuildConfigs → src/esbuildConfigs}/web.js +3 -1
- package/dist/common/src/lib/abstractBase.js +581 -0
- package/dist/common/{lib → src/lib}/basebuilder.js +12 -38
- package/dist/common/{lib → src/lib}/classBuilder.js +1 -3
- package/dist/common/{lib → src/lib}/core.js +3 -5
- package/dist/common/src/lib/types.js +2 -0
- package/dist/common/src/utils.js +16 -0
- package/dist/common/testeranto.js +15 -0
- package/dist/common/tsconfig.common.tsbuildinfo +1 -1
- package/dist/module/build-tests.js +10 -0
- package/dist/module/init-docs.js +3 -0
- package/dist/module/run-tests.js +6 -0
- package/dist/module/src/Aider.js +89 -0
- package/dist/module/src/Init.js +5 -0
- package/dist/module/{Node.js → src/Node.js} +1 -0
- package/dist/module/src/PM/index.js +3 -0
- package/dist/module/src/PM/main.js +617 -0
- package/dist/module/{PM → src/PM}/node.js +4 -0
- package/dist/module/{PM → src/PM}/web.js +3 -0
- package/dist/module/{Project.js → src/Project.js} +15 -57
- package/dist/module/{Puppeteer.js → src/Puppeteer.js} +65 -26
- package/dist/module/{SubPackages → src/SubPackages}/react-dom/component/web.js +5 -25
- package/dist/module/src/SubPackages/react-dom/jsx/web.js +89 -0
- package/dist/module/{SubPackages/react-test-renderer/component/index.js → src/SubPackages/react-test-renderer/component/interface.js} +0 -20
- package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/component/node.js +1 -1
- package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/component/web.js +1 -1
- package/dist/module/{esbuildConfigs → src/esbuildConfigs}/index.js +1 -0
- package/dist/module/src/esbuildConfigs/inputFilesPlugin.js +47 -0
- package/dist/module/{esbuildConfigs → src/esbuildConfigs}/node.js +5 -1
- package/dist/module/src/esbuildConfigs/report.js +14 -0
- package/dist/module/{esbuildConfigs → src/esbuildConfigs}/web.js +3 -1
- package/dist/module/src/lib/abstractBase.js +573 -0
- package/dist/module/{lib → src/lib}/basebuilder.js +12 -38
- package/dist/module/{lib → src/lib}/classBuilder.js +1 -3
- package/dist/module/{lib → src/lib}/core.js +3 -5
- package/dist/module/src/utils.js +9 -0
- package/dist/module/testeranto.js +13 -0
- package/dist/module/tsconfig.module.tsbuildinfo +1 -1
- package/dist/types/build-tests.d.ts +3 -0
- package/dist/types/init-docs.d.ts +2 -0
- package/dist/types/run-tests.d.ts +2 -0
- package/dist/types/src/Aider.d.ts +1 -0
- package/dist/types/src/Init.d.ts +2 -0
- package/dist/types/src/Node.d.ts +6 -0
- package/dist/types/{PM → src/PM}/index.d.ts +3 -2
- package/dist/types/{PM → src/PM}/main.d.ts +8 -3
- package/dist/types/{PM → src/PM}/node.d.ts +2 -0
- package/dist/types/{PM → src/PM}/web.d.ts +1 -0
- package/dist/types/{Project.d.ts → src/Project.d.ts} +1 -1
- package/dist/types/src/Puppeteer.d.ts +2 -0
- package/dist/types/src/SubPackages/puppeteer.d.ts +6 -0
- package/dist/types/{SubPackages → src/SubPackages}/react/component/node.d.ts +1 -1
- package/dist/types/{SubPackages → src/SubPackages}/react/component/web.d.ts +1 -1
- package/dist/types/src/SubPackages/react/jsx/node.d.ts +4 -0
- package/dist/types/src/SubPackages/react/jsx/web.d.ts +4 -0
- package/dist/types/{SubPackages → src/SubPackages}/react-dom/component/node.d.ts +2 -2
- package/dist/types/src/SubPackages/react-dom/component/web.d.ts +11 -0
- package/dist/types/src/SubPackages/react-dom/jsx/node.d.ts +6 -0
- package/dist/types/src/SubPackages/react-dom/jsx/web.d.ts +5 -0
- package/dist/types/src/SubPackages/react-test-renderer/MemoExoticComponent/node.d.ts +5 -0
- package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/component/index.d.ts +0 -7
- package/dist/types/src/SubPackages/react-test-renderer/component/interface.d.ts +9 -0
- package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/component/node.d.ts +1 -2
- package/dist/types/src/SubPackages/react-test-renderer/component/web.d.ts +3 -0
- package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/fc/node.d.ts +1 -1
- package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/fc/web.d.ts +1 -1
- package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx/node.d.ts +1 -2
- package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx/web.d.ts +1 -2
- package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/node.d.ts +4 -0
- package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/web.d.ts +4 -0
- package/dist/types/src/Types.d.ts +51 -0
- package/dist/types/src/Web.d.ts +6 -0
- package/dist/types/src/esbuildConfigs/inputFilesPlugin.d.ts +5 -0
- package/dist/types/{lib → src/lib}/abstractBase.d.ts +8 -8
- package/dist/types/{lib → src/lib}/basebuilder.d.ts +1 -1
- package/dist/types/{lib → src/lib}/classBuilder.d.ts +1 -1
- package/dist/types/{lib → src/lib}/core.d.ts +1 -1
- package/dist/types/{lib → src/lib}/index.d.ts +5 -5
- package/dist/types/{lib → src/lib}/types.d.ts +15 -15
- package/dist/types/src/utils.d.ts +2 -0
- package/dist/types/testeranto.d.ts +16 -0
- package/dist/types/tsconfig.types.tsbuildinfo +1 -1
- package/docker-compose.yml +37 -0
- package/init-docs.ts +5 -0
- package/package.json +72 -25
- package/run-tests.ts +9 -0
- package/src/Aider.ts +125 -0
- package/src/Init.ts +20 -0
- package/src/Node.ts +31 -2
- package/src/PM/index.ts +7 -84
- package/src/PM/main.ts +400 -16
- package/src/PM/node.ts +6 -0
- package/src/PM/web.ts +4 -0
- package/src/Project.ts +33 -84
- package/src/Puppeteer.ts +115 -62
- package/src/SubPackages/react-dom/component/web.ts +10 -30
- package/src/SubPackages/react-dom/jsx/web.ts +110 -76
- package/src/SubPackages/react-test-renderer/component/index.ts +0 -66
- package/src/SubPackages/react-test-renderer/component/interface.ts +48 -0
- package/src/SubPackages/react-test-renderer/component/node.ts +2 -1
- package/src/SubPackages/react-test-renderer/component/web.ts +2 -1
- package/src/Types.ts +138 -29
- package/src/Web.ts +32 -2
- package/src/esbuildConfigs/index.ts +1 -0
- package/src/esbuildConfigs/inputFilesPlugin.ts +67 -0
- package/src/esbuildConfigs/node.ts +4 -2
- package/src/esbuildConfigs/report.ts +13 -13
- package/src/esbuildConfigs/web.ts +4 -0
- package/src/lib/abstractBase.ts +366 -36
- package/src/lib/basebuilder.ts +26 -52
- package/src/lib/classBuilder.ts +14 -2
- package/src/lib/core.ts +18 -7
- package/src/lib/index.ts +115 -7
- package/src/lib/types.ts +143 -37
- package/src/utils.ts +15 -0
- package/testeranto.ts +13 -0
- package/tsconfig.common.json +12 -4
- package/tsconfig.json +9 -3
- package/tsconfig.module.json +2 -3
- package/tsconfig.types.json +1 -2
- package/dist/common/Features.js +0 -84
- package/dist/common/PM/index.js +0 -71
- package/dist/common/Reporter.js +0 -119
- package/dist/common/Scheduler.js +0 -1
- package/dist/common/SubPackages/react-dom/jsx/web.js +0 -93
- package/dist/common/esbuildConfigs/report.js +0 -13
- package/dist/common/lib/abstractBase.js +0 -348
- package/dist/common/preload.js +0 -15
- package/dist/common/report.html.js +0 -31
- package/dist/module/Features.js +0 -73
- package/dist/module/PM/index.js +0 -67
- package/dist/module/PM/main.js +0 -340
- package/dist/module/Reporter.js +0 -114
- package/dist/module/Scheduler.js +0 -1
- package/dist/module/SubPackages/react-dom/jsx/web.js +0 -65
- package/dist/module/Types.js +0 -3
- package/dist/module/esbuildConfigs/report.js +0 -11
- package/dist/module/lib/abstractBase.js +0 -340
- package/dist/module/preload.js +0 -15
- package/dist/module/report.html.js +0 -29
- package/dist/prebuild/Report.css +0 -11358
- package/dist/prebuild/Report.js +0 -37585
- package/dist/types/Features.d.ts +0 -68
- package/dist/types/Node.d.ts +0 -6
- package/dist/types/SubPackages/puppeteer.d.ts +0 -6
- 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/web.d.ts +0 -5
- 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/web.d.ts +0 -4
- package/dist/types/SubPackages/react-test-renderer/jsx-promised/node.d.ts +0 -5
- package/dist/types/SubPackages/react-test-renderer/jsx-promised/web.d.ts +0 -5
- package/dist/types/Types.d.ts +0 -50
- package/dist/types/Web.d.ts +0 -6
- package/dist/types/esbuildConfigs/report.d.ts +0 -4
- package/dist/types/preload.d.ts +0 -0
- package/dist/types/report.html.d.ts +0 -2
- package/electronBuild.ts +0 -32
- package/src/Features.ts +0 -118
- package/src/Report.tsx +0 -521
- package/src/Reporter.ts +0 -134
- package/src/Scheduler.ts +0 -0
- package/src/preload.ts +0 -17
- package/src/report.html.ts +0 -29
- package/tests/Rectangle.test.ts +0 -189
- /package/dist/common/{SubPackages → src/SubPackages}/puppeteer.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react/component/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react/component/web.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react/jsx/index.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react/jsx/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react/jsx/web.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-dom/component/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-dom/jsx/index.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-dom/jsx/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/MemoExoticComponent/node.js +0 -0
- /package/dist/common/{lib/types.js → src/SubPackages/react-test-renderer/component/index.js} +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/fc/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/fc/web.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx/index.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx/web.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/index.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/node.js +0 -0
- /package/dist/common/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/web.js +0 -0
- /package/dist/common/{Web.js → src/Web.js} +0 -0
- /package/dist/common/{esbuildConfigs → src/esbuildConfigs}/features.js +0 -0
- /package/dist/common/{esbuildConfigs → src/esbuildConfigs}/tests.js +0 -0
- /package/dist/common/{lib → src/lib}/index.js +0 -0
- /package/dist/common/{puppeteerConfiger.js → src/puppeteerConfiger.js} +0 -0
- /package/dist/common/{web.html.js → src/web.html.js} +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/puppeteer.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react/component/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react/component/web.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react/jsx/index.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react/jsx/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react/jsx/web.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-dom/component/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-dom/jsx/index.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-dom/jsx/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/MemoExoticComponent/node.js +0 -0
- /package/dist/module/{lib/types.js → src/SubPackages/react-test-renderer/component/index.js} +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/fc/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/fc/web.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx/index.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx/web.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/index.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/node.js +0 -0
- /package/dist/module/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/web.js +0 -0
- /package/dist/{types/Puppeteer.d.ts → module/src/Types.js} +0 -0
- /package/dist/module/{Web.js → src/Web.js} +0 -0
- /package/dist/module/{esbuildConfigs → src/esbuildConfigs}/features.js +0 -0
- /package/dist/module/{esbuildConfigs → src/esbuildConfigs}/tests.js +0 -0
- /package/dist/module/{lib → src/lib}/index.js +0 -0
- /package/dist/{types/Reporter.d.ts → module/src/lib/types.js} +0 -0
- /package/dist/module/{puppeteerConfiger.js → src/puppeteerConfiger.js} +0 -0
- /package/dist/module/{web.html.js → src/web.html.js} +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react/jsx/index.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react-dom/jsx/index.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx/index.d.ts +0 -0
- /package/dist/types/{SubPackages → src/SubPackages}/react-test-renderer/jsx-promised/index.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/features.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/index.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/node.d.ts +0 -0
- /package/dist/types/{Scheduler.d.ts → src/esbuildConfigs/report.d.ts} +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/tests.d.ts +0 -0
- /package/dist/types/{esbuildConfigs → src/esbuildConfigs}/web.d.ts +0 -0
- /package/dist/types/{puppeteerConfiger.d.ts → src/puppeteerConfiger.d.ts} +0 -0
- /package/dist/types/{web.html.d.ts → src/web.html.d.ts} +0 -0
package/dist/types/Features.d.ts
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import Graph from "graphology/dist/graphology.umd.js";
|
|
2
|
-
declare const DirectedGraph: any;
|
|
3
|
-
declare abstract class TesterantoGraph {
|
|
4
|
-
name: string;
|
|
5
|
-
abstract graph: any;
|
|
6
|
-
constructor(name: string);
|
|
7
|
-
}
|
|
8
|
-
export declare class BaseFeature {
|
|
9
|
-
name: string;
|
|
10
|
-
constructor(name: string);
|
|
11
|
-
}
|
|
12
|
-
export declare class TesterantoGraphUndirected implements TesterantoGraph {
|
|
13
|
-
name: string;
|
|
14
|
-
graph: Graph;
|
|
15
|
-
constructor(name: string);
|
|
16
|
-
connect(a: any, b: any, relation?: string): void;
|
|
17
|
-
}
|
|
18
|
-
export declare class TesterantoGraphDirected implements TesterantoGraph {
|
|
19
|
-
name: string;
|
|
20
|
-
graph: Graph;
|
|
21
|
-
constructor(name: string);
|
|
22
|
-
connect(to: any, from: any, relation?: string): void;
|
|
23
|
-
}
|
|
24
|
-
export declare class TesterantoGraphDirectedAcyclic implements TesterantoGraph {
|
|
25
|
-
name: string;
|
|
26
|
-
graph: Graph;
|
|
27
|
-
constructor(name: string);
|
|
28
|
-
connect(to: any, from: any, relation?: string): void;
|
|
29
|
-
}
|
|
30
|
-
export declare class TesterantoFeatures {
|
|
31
|
-
features: Record<string, BaseFeature>;
|
|
32
|
-
graphs: {
|
|
33
|
-
undirected: TesterantoGraphUndirected[];
|
|
34
|
-
directed: TesterantoGraphDirected[];
|
|
35
|
-
dags: TesterantoGraphDirectedAcyclic[];
|
|
36
|
-
};
|
|
37
|
-
constructor(features: Record<string, BaseFeature>, graphs: {
|
|
38
|
-
undirected: TesterantoGraphUndirected[];
|
|
39
|
-
directed: TesterantoGraphDirected[];
|
|
40
|
-
dags: TesterantoGraphDirectedAcyclic[];
|
|
41
|
-
});
|
|
42
|
-
networks(): (TesterantoGraphUndirected | TesterantoGraphDirected | TesterantoGraphDirectedAcyclic)[];
|
|
43
|
-
toObj(): {
|
|
44
|
-
features: {
|
|
45
|
-
inNetworks: {
|
|
46
|
-
network: string;
|
|
47
|
-
neighbors: any;
|
|
48
|
-
}[];
|
|
49
|
-
name: string;
|
|
50
|
-
}[];
|
|
51
|
-
networks: ({
|
|
52
|
-
name: string;
|
|
53
|
-
graph: Graph;
|
|
54
|
-
} | {
|
|
55
|
-
name: string;
|
|
56
|
-
graph: Graph;
|
|
57
|
-
} | {
|
|
58
|
-
name: string;
|
|
59
|
-
graph: Graph;
|
|
60
|
-
})[];
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
export declare type IT_FeatureNetwork = {
|
|
64
|
-
name: string;
|
|
65
|
-
};
|
|
66
|
-
export { DirectedGraph };
|
|
67
|
-
declare const _default: {};
|
|
68
|
-
export default _default;
|
package/dist/types/Node.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import Testeranto from "./lib/core.js";
|
|
2
|
-
import { ITTestResourceRequest } from "./lib/index.js";
|
|
3
|
-
import type { IBaseTest, ITestImplementation, ITestSpecification } from "./Types.js";
|
|
4
|
-
import { INodeTestInterface } from "./lib/types.js";
|
|
5
|
-
declare const _default: <ITestShape extends IBaseTest<any, any>>(input: ITestShape["iinput"], testSpecification: ITestSpecification<ITestShape>, testImplementation: ITestImplementation<ITestShape, object>, testInterface: Partial<INodeTestInterface<ITestShape>>, testResourceRequirement?: ITTestResourceRequest) => Promise<Testeranto<ITestShape>>;
|
|
6
|
-
export default _default;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IBaseTest, IPartialNodeInterface, ITestImplementation, ITestSpecification } from "../Types";
|
|
2
|
-
declare type IInput = string;
|
|
3
|
-
export declare type IImpl<ISpec extends IBaseTest> = ITestImplementation<ISpec>;
|
|
4
|
-
export declare type ISpec<T extends IBaseTest> = ITestSpecification<T>;
|
|
5
|
-
declare const _default: <ITestShape extends IBaseTest<any, any>>(testInput: IInput, testSpecifications: ISpec<ITestShape>, testImplementations: ITestImplementation<ITestShape, object>, testInterface?: Partial<import("../lib/types.js").INodeTestInterface<ITestShape>> | undefined) => Promise<import("../lib/core.js").default<ITestShape>>;
|
|
6
|
-
export default _default;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { IBaseTest, IPartialInterface } from "../../../Types";
|
|
2
|
-
import { ITestImpl, ITestSpec, IInput } from "./index.js";
|
|
3
|
-
declare const _default: <ITestShape extends IBaseTest<any, any>>(testImplementations: ITestImpl<ITestShape>, testSpecifications: ITestSpec<ITestShape>, testInput: IInput, testInterface: Partial<import("../../../lib/types.js").ITestInterface<ITestShape>>) => Promise<import("../../../lib/core.js").default<ITestShape>>;
|
|
4
|
-
export default _default;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { IBaseTest, IPartialWebInterface } from "../../../Types";
|
|
2
|
-
import { ITestImpl, ITestSpec, IInput } from "./index.js";
|
|
3
|
-
declare const _default: <ITestShape extends IBaseTest<any, any>>(testImplementations: ITestImpl<ITestShape>, testSpecifications: ITestSpec<ITestShape>, testInput: IInput, testInterface: Partial<import("../../../lib/types").IWebTestInterface<ITestShape>>) => Promise<import("../../../lib/core").default<ITestShape>>;
|
|
4
|
-
export default _default;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { IBaseTest, ITestImplementation, ITestSpecification } from "../../../Types";
|
|
3
|
-
declare type IInput = typeof React.Component;
|
|
4
|
-
declare const _default: <ITestShape extends IBaseTest<any, any>, IWhen, IGiven>(testInput: IInput, testSpecifications: ITestSpecification<ITestShape>, testImplementations: any) => Promise<import("../../../lib/core.js").default<ITestShape>>;
|
|
5
|
-
export default _default;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { renderToStaticMarkup, renderToStaticNodeStream } from "react-dom/server";
|
|
2
|
-
import Stream from 'stream';
|
|
3
|
-
import { IBaseTest, ITestImplementation, ITestSpecification } from "../../../Types";
|
|
4
|
-
export { renderToStaticMarkup, renderToStaticNodeStream, Stream };
|
|
5
|
-
declare const _default: <ITestShape extends IBaseTest<any, any>>(testImplementations: any, testSpecifications: ITestSpecification<ITestShape>, testInput: ITestShape["iinput"]) => Promise<import("../../../lib/core.js").default<ITestShape>>;
|
|
6
|
-
export default _default;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { IBaseTest, ITestImplementation, ITestSpecification } from "../../../Types";
|
|
2
|
-
import type { IInput } from "./index";
|
|
3
|
-
export declare type ISubject = HTMLElement;
|
|
4
|
-
declare const _default: <ITestShape extends IBaseTest<any, any>>(testImplementations: ITestImplementation<ITestShape, object>, testSpecifications: ITestSpecification<ITestShape>, testInput: IInput) => void;
|
|
5
|
-
export default _default;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { IBaseTest, ITestImplementation, ITestSpecification } from "../../../Types";
|
|
3
|
-
declare type IInput = React.MemoExoticComponent<() => JSX.Element>;
|
|
4
|
-
declare const _default: <ITestShape extends IBaseTest<any, any>, PropShape>(testImplementations: ITestImplementation<ITestShape, object>, testSpecifications: ITestSpecification<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core").default<ITestShape>>;
|
|
5
|
-
export default _default;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { IBaseTest } from "../../../Types";
|
|
2
|
-
import { IImpl, ISpec, IInput } from "./index.js";
|
|
3
|
-
declare const _default: <ITestShape extends IBaseTest<any, any>, IProps, IState>(testImplementations: IImpl<ITestShape>, testSpecifications: ISpec<ITestShape>, testInput: IInput<any, any>) => Promise<import("../../../lib/core").default<ITestShape>>;
|
|
4
|
-
export default _default;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { IInput } from ".";
|
|
2
|
-
import { IBaseTest } from "../../../Types";
|
|
3
|
-
import { ITestImpl, ITestSpec } from "../../react/jsx";
|
|
4
|
-
declare const _default: <ITestShape extends IBaseTest<any, any>>(testImplementations: ITestImpl<ITestShape>, testSpecifications: ITestSpec<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core").default<ITestShape>>;
|
|
5
|
-
export default _default;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { IBaseTest } from "../../../Types";
|
|
2
|
-
import { ITestImpl, ITestSpec } from "../../react/jsx";
|
|
3
|
-
import { IInput } from "./index";
|
|
4
|
-
declare const _default: <ITestShape extends IBaseTest<any, any>>(testImplementations: ITestImpl<ITestShape>, testSpecifications: ITestSpec<ITestShape>, testInput: IInput) => Promise<import("../../../lib/core").default<ITestShape>>;
|
|
5
|
-
export default _default;
|
package/dist/types/Types.d.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { ITTestResourceRequest, ITestCheckCallback } from "./lib/index.js";
|
|
2
|
-
import { IGivens, BaseCheck, BaseSuite, BaseWhen, BaseThen, BaseGiven } from "./lib/abstractBase.js";
|
|
3
|
-
import Testeranto from "./lib/core.js";
|
|
4
|
-
import { INodeTestInterface, ITestInterface, IWebTestInterface } from "./lib/types.js";
|
|
5
|
-
export declare type IPartialInterface<I extends IBaseTest> = Partial<ITestInterface<I>>;
|
|
6
|
-
export declare type IPartialNodeInterface<I extends IBaseTest> = Partial<INodeTestInterface<I>>;
|
|
7
|
-
export declare type IPartialWebInterface<I extends IBaseTest> = Partial<IWebTestInterface<I>>;
|
|
8
|
-
export declare type IEntry<ITestShape extends IBaseTest> = (input: ITestShape["iinput"], testSpecification: ITestSpecification<ITestShape>, testImplementation: ITestImplementation<ITestShape, object>, testInterface: IPartialInterface<ITestShape>, testResourceRequirement: ITTestResourceRequest) => Promise<Testeranto<ITestShape>>;
|
|
9
|
-
export declare type ITestSpecification<ITestShape extends IBaseTest> = (Suite: {
|
|
10
|
-
[K in keyof ITestShape["suites"]]: (name: string, givens: IGivens<ITestShape>, checks: BaseCheck<ITestShape>[]) => BaseSuite<ITestShape>;
|
|
11
|
-
}, Given: {
|
|
12
|
-
[K in keyof ITestShape["givens"]]: (features: string[], whens: BaseWhen<ITestShape>[], thens: BaseThen<ITestShape>[], ...xtrasB: ITestShape["givens"][K]) => BaseGiven<ITestShape>;
|
|
13
|
-
}, When: {
|
|
14
|
-
[K in keyof ITestShape["whens"]]: (...xtrasC: ITestShape["whens"][K]) => BaseWhen<ITestShape>;
|
|
15
|
-
}, Then: {
|
|
16
|
-
[K in keyof ITestShape["thens"]]: (...xtrasD: ITestShape["thens"][K]) => BaseThen<ITestShape>;
|
|
17
|
-
}, Check: ITestCheckCallback<ITestShape>) => any[];
|
|
18
|
-
export declare type ITestImplementation<ITestShape extends IBaseTest, IMod = object> = Modify<{
|
|
19
|
-
suites: {
|
|
20
|
-
[K in keyof ITestShape["suites"]]: string;
|
|
21
|
-
};
|
|
22
|
-
givens: {
|
|
23
|
-
[K in keyof ITestShape["givens"]]: (...Ig: ITestShape["givens"][K]) => ITestShape["given"];
|
|
24
|
-
};
|
|
25
|
-
whens: {
|
|
26
|
-
[K in keyof ITestShape["whens"]]: (...Iw: ITestShape["whens"][K]) => (zel: ITestShape["iselection"]) => ITestShape["when"];
|
|
27
|
-
};
|
|
28
|
-
thens: {
|
|
29
|
-
[K in keyof ITestShape["thens"]]: (...It: ITestShape["thens"][K]) => (ssel: ITestShape["iselection"]) => ITestShape["then"];
|
|
30
|
-
};
|
|
31
|
-
checks: {
|
|
32
|
-
[K in keyof ITestShape["checks"]]: (...Ic: ITestShape["checks"][K]) => ITestShape["given"];
|
|
33
|
-
};
|
|
34
|
-
}, IMod>;
|
|
35
|
-
declare type Modify<T, R> = Omit<T, keyof R> & R;
|
|
36
|
-
export declare type IBaseTest<Shape = any, II = Shape> = {
|
|
37
|
-
iinput: II;
|
|
38
|
-
isubject: Shape;
|
|
39
|
-
istore: Shape;
|
|
40
|
-
iselection: Shape;
|
|
41
|
-
given: any;
|
|
42
|
-
when: any;
|
|
43
|
-
then: any;
|
|
44
|
-
suites: Record<string, any>;
|
|
45
|
-
givens: Record<string, any>;
|
|
46
|
-
whens: Record<string, any>;
|
|
47
|
-
thens: Record<string, any>;
|
|
48
|
-
checks: Record<string, any>;
|
|
49
|
-
};
|
|
50
|
-
export {};
|
package/dist/types/Web.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { IBaseTest, ITestImplementation, ITestSpecification } from "./Types";
|
|
2
|
-
import Testeranto from "./lib/core.js";
|
|
3
|
-
import { ITTestResourceRequest } from "./lib/index.js";
|
|
4
|
-
import { IWebTestInterface } from "./lib/types";
|
|
5
|
-
declare const _default: <ITestShape extends IBaseTest<any, any>>(input: ITestShape["iinput"], testSpecification: ITestSpecification<ITestShape>, testImplementation: ITestImplementation<ITestShape, object>, testInterface: Partial<IWebTestInterface<ITestShape>>, testResourceRequirement?: ITTestResourceRequest) => Promise<Testeranto<ITestShape>>;
|
|
6
|
-
export default _default;
|
package/dist/types/preload.d.ts
DELETED
|
File without changes
|
package/electronBuild.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as esbuild from 'esbuild'
|
|
2
|
-
|
|
3
|
-
let result = await esbuild.build({
|
|
4
|
-
entryPoints: ['src/electron.ts'],
|
|
5
|
-
bundle: true,
|
|
6
|
-
outfile: 'dist/prebuild/electron.js',
|
|
7
|
-
external: [
|
|
8
|
-
"assert",
|
|
9
|
-
"child_process",
|
|
10
|
-
"constants",
|
|
11
|
-
"crypto",
|
|
12
|
-
"fs",
|
|
13
|
-
"http",
|
|
14
|
-
"https",
|
|
15
|
-
"net",
|
|
16
|
-
"os",
|
|
17
|
-
"path",
|
|
18
|
-
"readline",
|
|
19
|
-
"stream",
|
|
20
|
-
"tls",
|
|
21
|
-
"util",
|
|
22
|
-
"zlib",
|
|
23
|
-
"node:module",
|
|
24
|
-
"node:url",
|
|
25
|
-
"node:path",
|
|
26
|
-
],
|
|
27
|
-
banner: {
|
|
28
|
-
js: `import { createRequire } from 'module';const require = createRequire(import.meta.url);`
|
|
29
|
-
},
|
|
30
|
-
// inject: [`./src/cjs-shim.js`],
|
|
31
|
-
})
|
|
32
|
-
// yarn esbuild src / electron.ts--outfile = dist / prebuild / electron.js--bundle--external: path--external: http--external: fs--external: net--external: os--external: util--external: https--external: stream--external: tls--external: readline--external: child_process--external: zlib--external: assert--external: crypto--external: constants
|
package/src/Features.ts
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import Graph from "graphology/dist/graphology.umd.js";
|
|
2
|
-
|
|
3
|
-
const { DirectedGraph, UndirectedGraph } = Graph;
|
|
4
|
-
|
|
5
|
-
abstract class TesterantoGraph {
|
|
6
|
-
name: string;
|
|
7
|
-
abstract graph;
|
|
8
|
-
|
|
9
|
-
constructor(name: string) {
|
|
10
|
-
this.name = name;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export class BaseFeature {
|
|
15
|
-
name: string;
|
|
16
|
-
constructor(name: string) {
|
|
17
|
-
this.name = name;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export class TesterantoGraphUndirected implements TesterantoGraph {
|
|
22
|
-
name: string;
|
|
23
|
-
graph: Graph;
|
|
24
|
-
constructor(name: string) {
|
|
25
|
-
this.name = name;
|
|
26
|
-
this.graph = new UndirectedGraph();
|
|
27
|
-
}
|
|
28
|
-
connect(a, b, relation?: string) {
|
|
29
|
-
this.graph.mergeEdge(a, b, { type: relation });
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export class TesterantoGraphDirected implements TesterantoGraph {
|
|
34
|
-
name: string;
|
|
35
|
-
graph: Graph;
|
|
36
|
-
constructor(name: string) {
|
|
37
|
-
this.name = name;
|
|
38
|
-
this.graph = new DirectedGraph();
|
|
39
|
-
}
|
|
40
|
-
connect(to, from, relation?: string) {
|
|
41
|
-
this.graph.mergeEdge(to, from, { type: relation });
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export class TesterantoGraphDirectedAcyclic implements TesterantoGraph {
|
|
46
|
-
name: string;
|
|
47
|
-
graph: Graph;
|
|
48
|
-
constructor(name: string) {
|
|
49
|
-
this.name = name;
|
|
50
|
-
this.graph = new DirectedGraph();
|
|
51
|
-
}
|
|
52
|
-
connect(to, from, relation?: string) {
|
|
53
|
-
this.graph.mergeEdge(to, from, { type: relation });
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export class TesterantoFeatures {
|
|
58
|
-
features: Record<string, BaseFeature>;
|
|
59
|
-
graphs: {
|
|
60
|
-
undirected: TesterantoGraphUndirected[];
|
|
61
|
-
directed: TesterantoGraphDirected[];
|
|
62
|
-
dags: TesterantoGraphDirectedAcyclic[];
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
constructor(
|
|
66
|
-
features: Record<string, BaseFeature>,
|
|
67
|
-
graphs: {
|
|
68
|
-
undirected: TesterantoGraphUndirected[];
|
|
69
|
-
directed: TesterantoGraphDirected[];
|
|
70
|
-
dags: TesterantoGraphDirectedAcyclic[];
|
|
71
|
-
}
|
|
72
|
-
) {
|
|
73
|
-
this.features = features;
|
|
74
|
-
this.graphs = graphs;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
networks() {
|
|
78
|
-
return [
|
|
79
|
-
...this.graphs.undirected.values(),
|
|
80
|
-
...this.graphs.directed.values(),
|
|
81
|
-
...this.graphs.dags.values(),
|
|
82
|
-
];
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
toObj() {
|
|
86
|
-
return {
|
|
87
|
-
features: Object.entries(this.features).map(([name, feature]) => {
|
|
88
|
-
return {
|
|
89
|
-
...feature,
|
|
90
|
-
inNetworks: this.networks()
|
|
91
|
-
.filter((network) => {
|
|
92
|
-
return network.graph.hasNode(feature.name);
|
|
93
|
-
})
|
|
94
|
-
.map((network) => {
|
|
95
|
-
return {
|
|
96
|
-
network: network.name,
|
|
97
|
-
neighbors: network.graph.neighbors(feature.name),
|
|
98
|
-
};
|
|
99
|
-
}),
|
|
100
|
-
};
|
|
101
|
-
}),
|
|
102
|
-
networks: this.networks().map((network) => {
|
|
103
|
-
return {
|
|
104
|
-
...network,
|
|
105
|
-
};
|
|
106
|
-
}),
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export type IT_FeatureNetwork = {
|
|
112
|
-
name: string;
|
|
113
|
-
// graph: DirectedGraph
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
export { DirectedGraph };
|
|
117
|
-
|
|
118
|
-
export default {};
|