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.
Files changed (182) hide show
  1. package/TaskMan1.Dockerfile +1 -0
  2. package/package.json +1 -1
  3. package/dist/common/Features.js +0 -84
  4. package/dist/common/Node.js +0 -23
  5. package/dist/common/PM/index.js +0 -7
  6. package/dist/common/PM/main.js +0 -641
  7. package/dist/common/PM/node.js +0 -88
  8. package/dist/common/PM/web.js +0 -132
  9. package/dist/common/Project.js +0 -186
  10. package/dist/common/Puppeteer.js +0 -104
  11. package/dist/common/Reporter.js +0 -112
  12. package/dist/common/Scheduler.js +0 -1
  13. package/dist/common/SubPackages/puppeteer.js +0 -21
  14. package/dist/common/SubPackages/react/component/node.js +0 -19
  15. package/dist/common/SubPackages/react/component/web.js +0 -19
  16. package/dist/common/SubPackages/react/jsx/index.js +0 -25
  17. package/dist/common/SubPackages/react/jsx/node.js +0 -10
  18. package/dist/common/SubPackages/react/jsx/web.js +0 -10
  19. package/dist/common/SubPackages/react-dom/component/node.js +0 -101
  20. package/dist/common/SubPackages/react-dom/component/web.js +0 -93
  21. package/dist/common/SubPackages/react-dom/jsx/index.js +0 -2
  22. package/dist/common/SubPackages/react-dom/jsx/node.js +0 -39
  23. package/dist/common/SubPackages/react-dom/jsx/web.js +0 -118
  24. package/dist/common/SubPackages/react-test-renderer/MemoExoticComponent/node.js +0 -44
  25. package/dist/common/SubPackages/react-test-renderer/component/index.js +0 -2
  26. package/dist/common/SubPackages/react-test-renderer/component/interface.js +0 -68
  27. package/dist/common/SubPackages/react-test-renderer/component/node.js +0 -8
  28. package/dist/common/SubPackages/react-test-renderer/component/web.js +0 -8
  29. package/dist/common/SubPackages/react-test-renderer/fc/node.js +0 -50
  30. package/dist/common/SubPackages/react-test-renderer/fc/web.js +0 -50
  31. package/dist/common/SubPackages/react-test-renderer/jsx/index.js +0 -48
  32. package/dist/common/SubPackages/react-test-renderer/jsx/node.js +0 -10
  33. package/dist/common/SubPackages/react-test-renderer/jsx/web.js +0 -10
  34. package/dist/common/SubPackages/react-test-renderer/jsx-promised/index.js +0 -42
  35. package/dist/common/SubPackages/react-test-renderer/jsx-promised/node.js +0 -10
  36. package/dist/common/SubPackages/react-test-renderer/jsx-promised/web.js +0 -10
  37. package/dist/common/TaskManBackEnd.js +0 -174
  38. package/dist/common/Types.js +0 -2
  39. package/dist/common/Web.js +0 -39
  40. package/dist/common/esbuildConfigs/features.js +0 -14
  41. package/dist/common/esbuildConfigs/index.js +0 -21
  42. package/dist/common/esbuildConfigs/inputFilesPlugin.js +0 -49
  43. package/dist/common/esbuildConfigs/node.js +0 -39
  44. package/dist/common/esbuildConfigs/report.js +0 -13
  45. package/dist/common/esbuildConfigs/tests.js +0 -13
  46. package/dist/common/esbuildConfigs/web.js +0 -57
  47. package/dist/common/lib/abstractBase.js +0 -553
  48. package/dist/common/lib/basebuilder.js +0 -79
  49. package/dist/common/lib/classBuilder.js +0 -42
  50. package/dist/common/lib/core.js +0 -75
  51. package/dist/common/lib/index.js +0 -22
  52. package/dist/common/lib/types.js +0 -2
  53. package/dist/common/mongooseSchemas.js +0 -56
  54. package/dist/common/package.json +0 -3
  55. package/dist/common/preload.js +0 -15
  56. package/dist/common/puppeteerConfiger.js +0 -24
  57. package/dist/common/report.html.js +0 -31
  58. package/dist/common/tsconfig.common.tsbuildinfo +0 -1
  59. package/dist/common/utils.js +0 -16
  60. package/dist/common/web.html.js +0 -22
  61. package/dist/module/ExampleTab.js +0 -112
  62. package/dist/module/Features.js +0 -73
  63. package/dist/module/Node.js +0 -18
  64. package/dist/module/PM/index.js +0 -3
  65. package/dist/module/PM/main.js +0 -611
  66. package/dist/module/PM/node.js +0 -81
  67. package/dist/module/PM/web.js +0 -125
  68. package/dist/module/Project.js +0 -179
  69. package/dist/module/Puppeteer.js +0 -99
  70. package/dist/module/Reporter.js +0 -107
  71. package/dist/module/Scheduler.js +0 -1
  72. package/dist/module/SubPackages/puppeteer.js +0 -16
  73. package/dist/module/SubPackages/react/component/node.js +0 -14
  74. package/dist/module/SubPackages/react/component/web.js +0 -14
  75. package/dist/module/SubPackages/react/jsx/index.js +0 -19
  76. package/dist/module/SubPackages/react/jsx/node.js +0 -5
  77. package/dist/module/SubPackages/react/jsx/web.js +0 -5
  78. package/dist/module/SubPackages/react-dom/component/node.js +0 -93
  79. package/dist/module/SubPackages/react-dom/component/web.js +0 -88
  80. package/dist/module/SubPackages/react-dom/jsx/index.js +0 -1
  81. package/dist/module/SubPackages/react-dom/jsx/node.js +0 -31
  82. package/dist/module/SubPackages/react-dom/jsx/web.js +0 -90
  83. package/dist/module/SubPackages/react-test-renderer/MemoExoticComponent/node.js +0 -16
  84. package/dist/module/SubPackages/react-test-renderer/component/index.js +0 -1
  85. package/dist/module/SubPackages/react-test-renderer/component/interface.js +0 -39
  86. package/dist/module/SubPackages/react-test-renderer/component/node.js +0 -3
  87. package/dist/module/SubPackages/react-test-renderer/component/web.js +0 -3
  88. package/dist/module/SubPackages/react-test-renderer/fc/node.js +0 -22
  89. package/dist/module/SubPackages/react-test-renderer/fc/web.js +0 -22
  90. package/dist/module/SubPackages/react-test-renderer/jsx/index.js +0 -19
  91. package/dist/module/SubPackages/react-test-renderer/jsx/node.js +0 -5
  92. package/dist/module/SubPackages/react-test-renderer/jsx/web.js +0 -5
  93. package/dist/module/SubPackages/react-test-renderer/jsx-promised/index.js +0 -16
  94. package/dist/module/SubPackages/react-test-renderer/jsx-promised/node.js +0 -5
  95. package/dist/module/SubPackages/react-test-renderer/jsx-promised/web.js +0 -5
  96. package/dist/module/TaskManBackEnd.js +0 -169
  97. package/dist/module/TaskManFrontEnd.js +0 -600
  98. package/dist/module/Types.js +0 -1
  99. package/dist/module/Web.js +0 -34
  100. package/dist/module/esbuildConfigs/features.js +0 -12
  101. package/dist/module/esbuildConfigs/index.js +0 -19
  102. package/dist/module/esbuildConfigs/inputFilesPlugin.js +0 -44
  103. package/dist/module/esbuildConfigs/node.js +0 -34
  104. package/dist/module/esbuildConfigs/report.js +0 -11
  105. package/dist/module/esbuildConfigs/tests.js +0 -11
  106. package/dist/module/esbuildConfigs/web.js +0 -52
  107. package/dist/module/lib/abstractBase.js +0 -545
  108. package/dist/module/lib/basebuilder.js +0 -75
  109. package/dist/module/lib/classBuilder.js +0 -38
  110. package/dist/module/lib/core.js +0 -72
  111. package/dist/module/lib/index.js +0 -18
  112. package/dist/module/lib/types.js +0 -1
  113. package/dist/module/mongooseSchemas.js +0 -50
  114. package/dist/module/package.json +0 -3
  115. package/dist/module/preload.js +0 -15
  116. package/dist/module/puppeteerConfiger.js +0 -19
  117. package/dist/module/report.html.js +0 -29
  118. package/dist/module/tsconfig.module.tsbuildinfo +0 -1
  119. package/dist/module/utils.js +0 -9
  120. package/dist/module/web.html.js +0 -20
  121. package/dist/prebuild/Report.css +0 -11358
  122. package/dist/prebuild/Report.js +0 -37666
  123. package/dist/prebuild/TaskManBackEnd.mjs +0 -180
  124. package/dist/prebuild/TaskManFrontEnd.css +0 -12301
  125. package/dist/prebuild/TaskManFrontEnd.js +0 -81737
  126. package/dist/types/Features.d.ts +0 -68
  127. package/dist/types/Node.d.ts +0 -6
  128. package/dist/types/PM/index.d.ts +0 -20
  129. package/dist/types/PM/main.d.ts +0 -31
  130. package/dist/types/PM/node.d.ts +0 -27
  131. package/dist/types/PM/web.d.ts +0 -25
  132. package/dist/types/Project.d.ts +0 -7
  133. package/dist/types/Puppeteer.d.ts +0 -1
  134. package/dist/types/Reporter.d.ts +0 -1
  135. package/dist/types/Scheduler.d.ts +0 -0
  136. package/dist/types/SubPackages/puppeteer.d.ts +0 -6
  137. package/dist/types/SubPackages/react/component/node.d.ts +0 -7
  138. package/dist/types/SubPackages/react/component/web.d.ts +0 -7
  139. package/dist/types/SubPackages/react/jsx/index.d.ts +0 -12
  140. package/dist/types/SubPackages/react/jsx/node.d.ts +0 -4
  141. package/dist/types/SubPackages/react/jsx/web.d.ts +0 -4
  142. package/dist/types/SubPackages/react-dom/component/node.d.ts +0 -12
  143. package/dist/types/SubPackages/react-dom/component/web.d.ts +0 -11
  144. package/dist/types/SubPackages/react-dom/jsx/index.d.ts +0 -6
  145. package/dist/types/SubPackages/react-dom/jsx/node.d.ts +0 -6
  146. package/dist/types/SubPackages/react-dom/jsx/web.d.ts +0 -5
  147. package/dist/types/SubPackages/react-test-renderer/MemoExoticComponent/node.d.ts +0 -5
  148. package/dist/types/SubPackages/react-test-renderer/component/index.d.ts +0 -13
  149. package/dist/types/SubPackages/react-test-renderer/component/interface.d.ts +0 -9
  150. package/dist/types/SubPackages/react-test-renderer/component/node.d.ts +0 -8
  151. package/dist/types/SubPackages/react-test-renderer/component/web.d.ts +0 -3
  152. package/dist/types/SubPackages/react-test-renderer/fc/node.d.ts +0 -8
  153. package/dist/types/SubPackages/react-test-renderer/fc/web.d.ts +0 -8
  154. package/dist/types/SubPackages/react-test-renderer/jsx/index.d.ts +0 -16
  155. package/dist/types/SubPackages/react-test-renderer/jsx/node.d.ts +0 -8
  156. package/dist/types/SubPackages/react-test-renderer/jsx/web.d.ts +0 -8
  157. package/dist/types/SubPackages/react-test-renderer/jsx-promised/index.d.ts +0 -15
  158. package/dist/types/SubPackages/react-test-renderer/jsx-promised/node.d.ts +0 -4
  159. package/dist/types/SubPackages/react-test-renderer/jsx-promised/web.d.ts +0 -4
  160. package/dist/types/TaskManBackEnd.d.ts +0 -1
  161. package/dist/types/Types.d.ts +0 -50
  162. package/dist/types/Web.d.ts +0 -6
  163. package/dist/types/esbuildConfigs/features.d.ts +0 -4
  164. package/dist/types/esbuildConfigs/index.d.ts +0 -4
  165. package/dist/types/esbuildConfigs/inputFilesPlugin.d.ts +0 -5
  166. package/dist/types/esbuildConfigs/node.d.ts +0 -4
  167. package/dist/types/esbuildConfigs/report.d.ts +0 -4
  168. package/dist/types/esbuildConfigs/tests.d.ts +0 -4
  169. package/dist/types/esbuildConfigs/web.d.ts +0 -4
  170. package/dist/types/lib/abstractBase.d.ts +0 -104
  171. package/dist/types/lib/basebuilder.d.ts +0 -27
  172. package/dist/types/lib/classBuilder.d.ts +0 -7
  173. package/dist/types/lib/core.d.ts +0 -8
  174. package/dist/types/lib/index.d.ts +0 -59
  175. package/dist/types/lib/types.d.ts +0 -64
  176. package/dist/types/mongooseSchemas.d.ts +0 -124
  177. package/dist/types/preload.d.ts +0 -0
  178. package/dist/types/puppeteerConfiger.d.ts +0 -4
  179. package/dist/types/report.html.d.ts +0 -2
  180. package/dist/types/tsconfig.types.tsbuildinfo +0 -1
  181. package/dist/types/utils.d.ts +0 -2
  182. package/dist/types/web.html.d.ts +0 -2
@@ -1,72 +0,0 @@
1
- import { DefaultTestInterface, defaultTestResourceRequirement, } from "./index.js";
2
- import { BaseSuite, BaseGiven, BaseWhen, BaseThen, BaseCheck, } from "./abstractBase.js";
3
- import { ClassBuilder } from "./classBuilder.js";
4
- export default class Testeranto extends ClassBuilder {
5
- constructor(input, testSpecification, testImplementation, testResourceRequirement = defaultTestResourceRequirement, testInterface) {
6
- const fullTestInterface = DefaultTestInterface(testInterface);
7
- super(testImplementation, testSpecification, input, class extends BaseSuite {
8
- afterAll(store, artifactory, pm) {
9
- // const pagesHandler = {
10
- // get(target, prop) {
11
- // console.log(`Getting pages property ${prop}`);
12
- // return target[prop];
13
- // },
14
- // };
15
- // const browserHandler = {
16
- // get(target, prop) {
17
- // console.log(`Getting browser property ${prop}`);
18
- // if (prop === "pages") {
19
- // // return target[prop];
20
- // return new Proxy(target[prop], pagesHandler);
21
- // } else {
22
- // return target[prop];
23
- // }
24
- // },
25
- // };
26
- // const proxy = new Proxy(utils.browser, browserHandler);
27
- return fullTestInterface.afterAll(store, (fPath, value) => {
28
- artifactory(`afterAll4-${this.name}/${fPath}`, value);
29
- }, pm);
30
- }
31
- assertThat(t) {
32
- fullTestInterface.assertThis(t);
33
- }
34
- async setup(s, artifactory, tr, pm) {
35
- return (fullTestInterface.beforeAll ||
36
- (async (input, artifactory, tr, pm) => input))(s, this.testResourceConfiguration, artifactory, pm);
37
- }
38
- }, class Given extends BaseGiven {
39
- async givenThat(subject, testResource, artifactory, initializer, pm) {
40
- return fullTestInterface.beforeEach(subject, initializer, (fPath, value) =>
41
- // TODO does not work?
42
- artifactory(`beforeEach/${fPath}`, value), testResource, this.initialValues, pm);
43
- }
44
- afterEach(store, key, artifactory, pm) {
45
- return new Promise((res) => res(fullTestInterface.afterEach(store, key, (fPath, value) => artifactory(`after/${fPath}`, value), pm)));
46
- }
47
- }, class When extends BaseWhen {
48
- async andWhen(store, whenCB, testResource, pm) {
49
- return await fullTestInterface.andWhen(store, whenCB, testResource, pm);
50
- }
51
- }, class Then extends BaseThen {
52
- async butThen(store, thenCB, testResourceConfiguration, pm) {
53
- return await fullTestInterface.butThen(store, thenCB, testResourceConfiguration, pm);
54
- }
55
- }, class Check extends BaseCheck {
56
- constructor(name, features, checkCallback, whens, thens, initialValues) {
57
- super(name, features, checkCallback, whens, thens);
58
- this.initialValues = initialValues;
59
- }
60
- async checkThat(subject, testResourceConfiguration, artifactory, pm) {
61
- return fullTestInterface.beforeEach(subject, this.initialValues, (fPath, value) => artifactory(`before/${fPath}`, value), testResourceConfiguration, this.initialValues, pm);
62
- }
63
- afterEach(store, key, artifactory, pm) {
64
- return new Promise((res) => res(fullTestInterface.afterEach(store, key, (fPath, value) =>
65
- // TODO does not work?
66
- artifactory(`afterEach2-${this.name}/${fPath}`, value), pm)));
67
- }
68
- }, testResourceRequirement
69
- // puppetMaster
70
- );
71
- }
72
- }
@@ -1,18 +0,0 @@
1
- // import { INodeUtils, ITestInterface, IUtils, IWebUtils } from "./types.js";
2
- export const BaseTestInterface = {
3
- beforeAll: async (s) => s,
4
- beforeEach: async function (subject, initialValues, x, testResource, pm) {
5
- return subject;
6
- },
7
- afterEach: async (s) => s,
8
- afterAll: (store) => undefined,
9
- butThen: async (store, thenCb) => thenCb(store),
10
- andWhen: (a) => a,
11
- assertThis: () => null,
12
- };
13
- export const DefaultTestInterface = (p) => {
14
- return Object.assign(Object.assign({}, BaseTestInterface), p);
15
- };
16
- export const defaultTestResourceRequirement = {
17
- ports: 0,
18
- };
@@ -1 +0,0 @@
1
- export {};
@@ -1,50 +0,0 @@
1
- import mongoose from "mongoose";
2
- export const userSchema = new mongoose.Schema({
3
- email: String,
4
- channels: [{ type: mongoose.Schema.Types.ObjectId, ref: "Channel" }],
5
- dmgroups: [{ type: mongoose.Schema.Types.ObjectId, ref: "Dmgroup" }],
6
- });
7
- userSchema.virtual("features", {
8
- ref: "Feature",
9
- localField: "_id",
10
- foreignField: "owner",
11
- });
12
- export const kanbanSchema = new mongoose.Schema({
13
- title: String,
14
- });
15
- export const ganttSchema = new mongoose.Schema({
16
- name: String,
17
- type: String,
18
- start: Date,
19
- end: Date,
20
- });
21
- export const featuresSchema = new mongoose.Schema({
22
- title: String,
23
- state: String,
24
- });
25
- export const channelsFeature = new mongoose.Schema({});
26
- export const chatCatMessageSchema = new mongoose.Schema({
27
- user: {
28
- type: mongoose.Schema.Types.ObjectId,
29
- ref: "User",
30
- required: true,
31
- },
32
- room: {
33
- type: mongoose.Schema.Types.ObjectId,
34
- ref: "ChatCatRoom",
35
- required: true,
36
- maxlength: 100,
37
- },
38
- timestamp: {
39
- type: Date,
40
- default: Date.now(),
41
- },
42
- text: {
43
- type: String,
44
- maxlength: 1000,
45
- },
46
- });
47
- export const HuddleSchema = new mongoose.Schema({});
48
- export const RoomSchema = new mongoose.Schema({
49
- name: { type: String, required: true },
50
- });
@@ -1,3 +0,0 @@
1
- {
2
- "type": "module"
3
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- // import puppeteer from "puppeteer-core";
3
- // import { NodeWriter } from "./NodeWriter";
4
- // import puppeteerConfiger from "./puppeteerConfiger";
5
- // (window as any).NodeWriter = NodeWriter;
6
- // (window as any).browser = new Promise(async (res, rej) => {
7
- // const browser = await puppeteerConfiger("2999").then(async (json) => {
8
- // const b = await puppeteer.connect({
9
- // browserWSEndpoint: json.webSocketDebuggerUrl,
10
- // defaultViewport: null,
11
- // });
12
- // console.log("connected!", b.isConnected());
13
- // return res(b);
14
- // });
15
- // });
@@ -1,19 +0,0 @@
1
- import http from "http";
2
- export default async (port) => new Promise((resolve, reject) => {
3
- let json = "";
4
- const request = http.request({
5
- host: "127.0.0.1",
6
- path: "/json/version",
7
- port,
8
- }, (response) => {
9
- response.on("error", reject);
10
- response.on("data", (chunk) => {
11
- json += chunk.toString();
12
- });
13
- response.on("end", () => {
14
- resolve(JSON.parse(json));
15
- });
16
- });
17
- request.on("error", reject);
18
- request.end();
19
- });
@@ -1,29 +0,0 @@
1
- export default () => `
2
- <!DOCTYPE html>
3
- <html lang="en">
4
-
5
- <head>
6
- <meta name="description" content="Webpage description goes here" />
7
- <meta charset="utf-8" />
8
- <title>kokomoBay - testeranto</title>
9
- <meta name="viewport" content="width=device-width, initial-scale=1" />
10
- <meta name="author" content="" />
11
-
12
- <link rel="stylesheet" href="./Report.css">
13
-
14
- <script type="importmap">
15
- {
16
- "imports": {
17
- "features.test.js": "./features.test.js",
18
- "testeranto.json": "./testeranto.json"
19
- }
20
- }
21
- </script>
22
-
23
- <script type="module" src="./Report.js"></script>
24
- </head>
25
-
26
- <body><div id="root">react is loading</div></body>
27
-
28
- </html>
29
- `;