testeranto 0.100.0 → 0.111.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.
Files changed (226) hide show
  1. package/README.md +1 -0
  2. package/bundle.js +80 -30
  3. package/package.json +40 -32
  4. package/src/Footer.tsx +4 -0
  5. package/src/Init.ts +48 -0
  6. package/src/Node.ts +23 -17
  7. package/src/PM/index.ts +1 -1
  8. package/src/PM/main.ts +524 -156
  9. package/src/PM/node.ts +2 -2
  10. package/src/PM/web.ts +1 -1
  11. package/src/ReportClient.tsx +163 -0
  12. package/src/ReportServer.ts +21 -0
  13. package/src/SubPackages/react/component/node.ts +68 -24
  14. package/src/SubPackages/react/component/web.ts +68 -25
  15. package/src/SubPackages/react/jsx/index.ts +39 -18
  16. package/src/SubPackages/react/jsx/node.ts +12 -10
  17. package/src/SubPackages/react/jsx/web.ts +27 -14
  18. package/src/SubPackages/react-dom/component/node.ts +42 -50
  19. package/src/SubPackages/react-dom/component/web.ts +28 -10
  20. package/src/SubPackages/react-dom/jsx/node.ts +54 -56
  21. package/src/SubPackages/react-dom/jsx/web.ts +55 -42
  22. package/src/SubPackages/react-test-renderer/MemoExoticComponent/node.ts +23 -7
  23. package/src/SubPackages/react-test-renderer/component/index.ts +38 -5
  24. package/src/SubPackages/react-test-renderer/component/node.ts +24 -5
  25. package/src/SubPackages/react-test-renderer/component/web.ts +22 -5
  26. package/src/SubPackages/react-test-renderer/fc/node.ts +41 -7
  27. package/src/SubPackages/react-test-renderer/fc/web.ts +43 -11
  28. package/src/SubPackages/react-test-renderer/jsx/index.ts +39 -16
  29. package/src/SubPackages/react-test-renderer/jsx/node.ts +8 -6
  30. package/src/SubPackages/react-test-renderer/jsx/web.ts +22 -5
  31. package/src/SubPackages/react-test-renderer/jsx-promised/index.ts +39 -6
  32. package/src/SubPackages/react-test-renderer/jsx-promised/node.ts +27 -10
  33. package/src/SubPackages/react-test-renderer/jsx-promised/web.ts +26 -12
  34. package/src/TestReport.tsx +176 -0
  35. package/src/Types.ts +63 -309
  36. package/src/Web.ts +24 -18
  37. package/src/build.ts +240 -0
  38. package/src/defaultConfig.ts +2 -1
  39. package/src/esbuildConfigs/eslint-formatter-testeranto.ts +5 -0
  40. package/src/esbuildConfigs/featuresPlugin.ts +0 -1
  41. package/src/esbuildConfigs/index.ts +1 -1
  42. package/src/esbuildConfigs/inputFilesPlugin.ts +2 -135
  43. package/src/esbuildConfigs/node.ts +4 -13
  44. package/src/esbuildConfigs/web.ts +3 -19
  45. package/src/init-docs.ts +2 -1
  46. package/src/lib/abstractBase.ts +82 -80
  47. package/src/lib/basebuilder.ts +57 -45
  48. package/src/lib/classBuilder.ts +15 -15
  49. package/src/lib/core.ts +44 -35
  50. package/src/lib/index.ts +47 -98
  51. package/src/lib/readme.md +12 -0
  52. package/src/lib/types.ts +53 -70
  53. package/src/run.ts +31 -0
  54. package/src/style.css +8 -0
  55. package/src/utils.ts +74 -2
  56. package/tsc.log +108 -0
  57. package/Bundle.Dockerfile +0 -52
  58. package/bin/init-docs.js +0 -24
  59. package/dist/common/dist/module/src/Init.js +0 -40
  60. package/dist/common/package.json +0 -3
  61. package/dist/common/src/Init.js +0 -40
  62. package/dist/common/src/Node.js +0 -27
  63. package/dist/common/src/PM/index.js +0 -7
  64. package/dist/common/src/PM/main.js +0 -941
  65. package/dist/common/src/PM/node.js +0 -128
  66. package/dist/common/src/PM/web.js +0 -121
  67. package/dist/common/src/SubPackages/puppeteer.js +0 -21
  68. package/dist/common/src/SubPackages/react/component/node.js +0 -19
  69. package/dist/common/src/SubPackages/react/component/web.js +0 -19
  70. package/dist/common/src/SubPackages/react/jsx/index.js +0 -33
  71. package/dist/common/src/SubPackages/react/jsx/node.js +0 -10
  72. package/dist/common/src/SubPackages/react/jsx/web.js +0 -10
  73. package/dist/common/src/SubPackages/react-dom/component/node.js +0 -101
  74. package/dist/common/src/SubPackages/react-dom/component/web.js +0 -67
  75. package/dist/common/src/SubPackages/react-dom/jsx/index.js +0 -2
  76. package/dist/common/src/SubPackages/react-dom/jsx/node.js +0 -39
  77. package/dist/common/src/SubPackages/react-dom/jsx/web.js +0 -117
  78. package/dist/common/src/SubPackages/react-test-renderer/MemoExoticComponent/node.js +0 -44
  79. package/dist/common/src/SubPackages/react-test-renderer/component/index.js +0 -2
  80. package/dist/common/src/SubPackages/react-test-renderer/component/interface.js +0 -60
  81. package/dist/common/src/SubPackages/react-test-renderer/component/node.js +0 -8
  82. package/dist/common/src/SubPackages/react-test-renderer/component/web.js +0 -8
  83. package/dist/common/src/SubPackages/react-test-renderer/fc/node.js +0 -50
  84. package/dist/common/src/SubPackages/react-test-renderer/fc/web.js +0 -50
  85. package/dist/common/src/SubPackages/react-test-renderer/jsx/index.js +0 -63
  86. package/dist/common/src/SubPackages/react-test-renderer/jsx/node.js +0 -10
  87. package/dist/common/src/SubPackages/react-test-renderer/jsx/web.js +0 -10
  88. package/dist/common/src/SubPackages/react-test-renderer/jsx-promised/index.js +0 -42
  89. package/dist/common/src/SubPackages/react-test-renderer/jsx-promised/node.js +0 -10
  90. package/dist/common/src/SubPackages/react-test-renderer/jsx-promised/web.js +0 -10
  91. package/dist/common/src/Types.js +0 -2
  92. package/dist/common/src/Web.js +0 -49
  93. package/dist/common/src/cli.js +0 -439
  94. package/dist/common/src/cli2.js +0 -144
  95. package/dist/common/src/defaultConfig.js +0 -19
  96. package/dist/common/src/esbuildConfigs/featuresPlugin.js +0 -39
  97. package/dist/common/src/esbuildConfigs/index.js +0 -21
  98. package/dist/common/src/esbuildConfigs/inputFilesPlugin.js +0 -99
  99. package/dist/common/src/esbuildConfigs/node.js +0 -45
  100. package/dist/common/src/esbuildConfigs/web.js +0 -61
  101. package/dist/common/src/init-docs.js +0 -43
  102. package/dist/common/src/lib/abstractBase.js +0 -324
  103. package/dist/common/src/lib/basebuilder.js +0 -85
  104. package/dist/common/src/lib/classBuilder.js +0 -42
  105. package/dist/common/src/lib/core.js +0 -101
  106. package/dist/common/src/lib/index.js +0 -22
  107. package/dist/common/src/lib/types.js +0 -3
  108. package/dist/common/src/puppeteerConfiger.js +0 -24
  109. package/dist/common/src/utils.js +0 -16
  110. package/dist/common/src/web.html.js +0 -22
  111. package/dist/common/testeranto.js +0 -15
  112. package/dist/common/tsconfig.common.tsbuildinfo +0 -1
  113. package/dist/module/package.json +0 -3
  114. package/dist/module/src/Init.js +0 -35
  115. package/dist/module/src/Node.js +0 -20
  116. package/dist/module/src/PM/index.js +0 -3
  117. package/dist/module/src/PM/main.js +0 -911
  118. package/dist/module/src/PM/node.js +0 -121
  119. package/dist/module/src/PM/web.js +0 -117
  120. package/dist/module/src/SubPackages/puppeteer.js +0 -16
  121. package/dist/module/src/SubPackages/react/component/node.js +0 -14
  122. package/dist/module/src/SubPackages/react/component/web.js +0 -14
  123. package/dist/module/src/SubPackages/react/jsx/index.js +0 -27
  124. package/dist/module/src/SubPackages/react/jsx/node.js +0 -5
  125. package/dist/module/src/SubPackages/react/jsx/web.js +0 -5
  126. package/dist/module/src/SubPackages/react-dom/component/node.js +0 -93
  127. package/dist/module/src/SubPackages/react-dom/component/web.js +0 -62
  128. package/dist/module/src/SubPackages/react-dom/jsx/index.js +0 -1
  129. package/dist/module/src/SubPackages/react-dom/jsx/node.js +0 -31
  130. package/dist/module/src/SubPackages/react-dom/jsx/web.js +0 -89
  131. package/dist/module/src/SubPackages/react-test-renderer/MemoExoticComponent/node.js +0 -16
  132. package/dist/module/src/SubPackages/react-test-renderer/component/index.js +0 -1
  133. package/dist/module/src/SubPackages/react-test-renderer/component/interface.js +0 -31
  134. package/dist/module/src/SubPackages/react-test-renderer/component/node.js +0 -3
  135. package/dist/module/src/SubPackages/react-test-renderer/component/web.js +0 -3
  136. package/dist/module/src/SubPackages/react-test-renderer/fc/node.js +0 -22
  137. package/dist/module/src/SubPackages/react-test-renderer/fc/web.js +0 -22
  138. package/dist/module/src/SubPackages/react-test-renderer/jsx/index.js +0 -34
  139. package/dist/module/src/SubPackages/react-test-renderer/jsx/node.js +0 -5
  140. package/dist/module/src/SubPackages/react-test-renderer/jsx/web.js +0 -5
  141. package/dist/module/src/SubPackages/react-test-renderer/jsx-promised/index.js +0 -16
  142. package/dist/module/src/SubPackages/react-test-renderer/jsx-promised/node.js +0 -5
  143. package/dist/module/src/SubPackages/react-test-renderer/jsx-promised/web.js +0 -5
  144. package/dist/module/src/Types.js +0 -1
  145. package/dist/module/src/Web.js +0 -42
  146. package/dist/module/src/cli.js +0 -411
  147. package/dist/module/src/cli2.js +0 -116
  148. package/dist/module/src/defaultConfig.js +0 -17
  149. package/dist/module/src/esbuildConfigs/featuresPlugin.js +0 -34
  150. package/dist/module/src/esbuildConfigs/index.js +0 -19
  151. package/dist/module/src/esbuildConfigs/inputFilesPlugin.js +0 -94
  152. package/dist/module/src/esbuildConfigs/node.js +0 -40
  153. package/dist/module/src/esbuildConfigs/web.js +0 -56
  154. package/dist/module/src/init-docs.js +0 -15
  155. package/dist/module/src/lib/abstractBase.js +0 -316
  156. package/dist/module/src/lib/basebuilder.js +0 -81
  157. package/dist/module/src/lib/classBuilder.js +0 -38
  158. package/dist/module/src/lib/core.js +0 -98
  159. package/dist/module/src/lib/index.js +0 -18
  160. package/dist/module/src/lib/types.js +0 -2
  161. package/dist/module/src/puppeteerConfiger.js +0 -19
  162. package/dist/module/src/utils.js +0 -9
  163. package/dist/module/src/web.html.js +0 -20
  164. package/dist/module/testeranto.js +0 -13
  165. package/dist/module/tsconfig.module.tsbuildinfo +0 -1
  166. package/dist/prebuild/cli.mjs +0 -1491
  167. package/dist/prebuild/cli2.mjs +0 -918
  168. package/dist/prebuild/init-docs.mjs +0 -48
  169. package/dist/types/dist/module/src/Init.d.ts +0 -2
  170. package/dist/types/src/Init.d.ts +0 -2
  171. package/dist/types/src/Node.d.ts +0 -13
  172. package/dist/types/src/PM/index.d.ts +0 -34
  173. package/dist/types/src/PM/main.d.ts +0 -56
  174. package/dist/types/src/PM/node.d.ts +0 -42
  175. package/dist/types/src/PM/web.d.ts +0 -40
  176. package/dist/types/src/SubPackages/puppeteer.d.ts +0 -6
  177. package/dist/types/src/SubPackages/react/component/node.d.ts +0 -7
  178. package/dist/types/src/SubPackages/react/component/web.d.ts +0 -7
  179. package/dist/types/src/SubPackages/react/jsx/index.d.ts +0 -12
  180. package/dist/types/src/SubPackages/react/jsx/node.d.ts +0 -4
  181. package/dist/types/src/SubPackages/react/jsx/web.d.ts +0 -4
  182. package/dist/types/src/SubPackages/react-dom/component/node.d.ts +0 -12
  183. package/dist/types/src/SubPackages/react-dom/component/web.d.ts +0 -11
  184. package/dist/types/src/SubPackages/react-dom/jsx/index.d.ts +0 -7
  185. package/dist/types/src/SubPackages/react-dom/jsx/node.d.ts +0 -6
  186. package/dist/types/src/SubPackages/react-dom/jsx/web.d.ts +0 -5
  187. package/dist/types/src/SubPackages/react-test-renderer/MemoExoticComponent/node.d.ts +0 -5
  188. package/dist/types/src/SubPackages/react-test-renderer/component/index.d.ts +0 -13
  189. package/dist/types/src/SubPackages/react-test-renderer/component/interface.d.ts +0 -9
  190. package/dist/types/src/SubPackages/react-test-renderer/component/node.d.ts +0 -8
  191. package/dist/types/src/SubPackages/react-test-renderer/component/web.d.ts +0 -3
  192. package/dist/types/src/SubPackages/react-test-renderer/fc/node.d.ts +0 -8
  193. package/dist/types/src/SubPackages/react-test-renderer/fc/web.d.ts +0 -8
  194. package/dist/types/src/SubPackages/react-test-renderer/jsx/index.d.ts +0 -17
  195. package/dist/types/src/SubPackages/react-test-renderer/jsx/node.d.ts +0 -9
  196. package/dist/types/src/SubPackages/react-test-renderer/jsx/web.d.ts +0 -8
  197. package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/index.d.ts +0 -16
  198. package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/node.d.ts +0 -4
  199. package/dist/types/src/SubPackages/react-test-renderer/jsx-promised/web.d.ts +0 -4
  200. package/dist/types/src/Types.d.ts +0 -90
  201. package/dist/types/src/Web.d.ts +0 -10
  202. package/dist/types/src/cli.d.ts +0 -1
  203. package/dist/types/src/cli2.d.ts +0 -1
  204. package/dist/types/src/defaultConfig.d.ts +0 -3
  205. package/dist/types/src/esbuildConfigs/featuresPlugin.d.ts +0 -5
  206. package/dist/types/src/esbuildConfigs/index.d.ts +0 -4
  207. package/dist/types/src/esbuildConfigs/inputFilesPlugin.d.ts +0 -7
  208. package/dist/types/src/esbuildConfigs/node.d.ts +0 -4
  209. package/dist/types/src/esbuildConfigs/web.d.ts +0 -4
  210. package/dist/types/src/init-docs.d.ts +0 -1
  211. package/dist/types/src/lib/abstractBase.d.ts +0 -110
  212. package/dist/types/src/lib/basebuilder.d.ts +0 -27
  213. package/dist/types/src/lib/classBuilder.d.ts +0 -7
  214. package/dist/types/src/lib/core.d.ts +0 -8
  215. package/dist/types/src/lib/index.d.ts +0 -60
  216. package/dist/types/src/lib/types.d.ts +0 -40
  217. package/dist/types/src/puppeteerConfiger.d.ts +0 -4
  218. package/dist/types/src/utils.d.ts +0 -2
  219. package/dist/types/src/web.html.d.ts +0 -2
  220. package/dist/types/testeranto.d.ts +0 -16
  221. package/dist/types/tsconfig.types.tsbuildinfo +0 -1
  222. package/docker-compose.yml +0 -37
  223. package/src/SubPackages/puppeteer.ts +0 -51
  224. package/src/cli.ts +0 -535
  225. package/src/cli2.ts +0 -157
  226. package/testeranto.ts +0 -13
package/src/utils.ts CHANGED
@@ -1,6 +1,6 @@
1
- // import { configs } from "eslint-plugin-react";
2
1
  import path from "path";
3
- import { IBuiltConfig, IRunTime } from "./lib/types";
2
+
3
+ import { IRunTime, IBuiltConfig } from "./lib";
4
4
 
5
5
  export const destinationOfRuntime = (
6
6
  f: string,
@@ -13,3 +13,75 @@ export const destinationOfRuntime = (
13
13
  .slice(0, -1)
14
14
  .join(".");
15
15
  };
16
+
17
+ export const tscPather = (entryPoint: string, platform: "web" | "node") => {
18
+ return path.join(
19
+ "./docs/",
20
+ platform,
21
+ entryPoint.split(".").slice(0, -1).join("."),
22
+ `type_errors.txt`
23
+ );
24
+ };
25
+
26
+ export const tscExitCodePather = (
27
+ entryPoint: string,
28
+ platform: "web" | "node"
29
+ ) => {
30
+ return path.join(
31
+ "./docs/",
32
+ platform,
33
+ entryPoint.split(".").slice(0, -1).join("."),
34
+ `type_errors.txt`
35
+ );
36
+ };
37
+
38
+ export const lintPather = (entryPoint: string, platform: "web" | "node") => {
39
+ return path.join(
40
+ "./docs/",
41
+ platform,
42
+ entryPoint.split(".").slice(0, -1).join("."),
43
+ `lint_errors.json`
44
+ );
45
+ };
46
+
47
+ export const lintExitCodePather = (
48
+ entryPoint: string,
49
+ platform: "web" | "node"
50
+ ) => {
51
+ return path.join(
52
+ "./docs/",
53
+ platform,
54
+ entryPoint.split(".").slice(0, -1).join("."),
55
+ `lint_errors.txt`
56
+ );
57
+ };
58
+
59
+ export const bddPather = (entryPoint: string, platform: "web" | "node") => {
60
+ return path.join(
61
+ "./docs/",
62
+ platform,
63
+ entryPoint.split(".").slice(0, -1).join("."),
64
+ `tests.json`
65
+ );
66
+ };
67
+
68
+ export const bddExitCodePather = (
69
+ entryPoint: string,
70
+ platform: "web" | "node"
71
+ ) => {
72
+ return path.join(
73
+ "./docs/",
74
+ platform,
75
+ entryPoint.split(".").slice(0, -1).join("."),
76
+ `bdd_errors.txt`
77
+ );
78
+ };
79
+
80
+ export const promptPather = (entryPoint: string, platform: "web" | "node") => {
81
+ return path.join(
82
+ "./docs/",
83
+ platform,
84
+ entryPoint.split(".").slice(0, -1).join("."),
85
+ `prompt.txt`
86
+ );
87
+ };
package/tsc.log ADDED
@@ -0,0 +1,108 @@
1
+ $ /Users/adam/Code/testeranto/node_modules/.bin/tsc --noEmit
2
+ src/esbuildConfigs/node.ts(62,7): error TS2741: Property 'setup' is missing in type 'Plugin' but required in type 'import("/Users/adam/Code/testeranto/node_modules/esbuild/lib/main").Plugin'.
3
+ src/esbuildConfigs/web.ts(73,7): error TS2741: Property 'setup' is missing in type 'Plugin' but required in type 'import("/Users/adam/Code/testeranto/node_modules/esbuild/lib/main").Plugin'.
4
+ src/lib/abstractBase.ts(5,27): error TS2307: Cannot find module '../../dist/types/src/Types.js' or its corresponding type declarations.
5
+ src/lib/abstractBase.ts(158,11): error TS2345: Argument of type '(t: I["then"]) => unknown' is not assignable to parameter of type '(t: Awaited<I["then"]> | undefined) => boolean'.
6
+ Type 'unknown' is not assignable to type 'boolean'.
7
+ src/lib/abstractBase.ts(703,68): error TS2554: Expected 5 arguments, but got 4.
8
+ src/lib/index.ts(1,27): error TS2307: Cannot find module '../../dist/types/src/Types.js' or its corresponding type declarations.
9
+ src/lib/index.ts(43,8): error TS18046: 'thenCb' is of type 'unknown'.
10
+ src/lib/index.ts(44,19): error TS2322: Type 'unknown' is not assignable to type 'Promise<unknown>'.
11
+ src/Node.ts(58,56): error TS2345: Argument of type 'PM_Node' is not assignable to parameter of type 'PM'.
12
+ Types of property 'customScreenShot' are incompatible.
13
+ Type '(opts: ScreencastOptions, cdpPage: CdpPage) => any' is not assignable to type '(opts: object, page?: string | undefined) => any'.
14
+ Types of parameters 'cdpPage' and 'page' are incompatible.
15
+ Type 'string | undefined' is not assignable to type 'CdpPage'.
16
+ Type 'undefined' is not assignable to type 'CdpPage'.
17
+ src/PM/main.ts(292,24): error TS18048: 'page' is possibly 'undefined'.
18
+ src/PM/main.ts(323,9): error TS2322: Type 'string' is not assignable to type '`${string}.webm`'.
19
+ src/PM/main.ts(326,17): error TS2538: Type 'undefined' cannot be used as an index type.
20
+ src/PM/main.ts(363,3): error TS2416: Property 'customScreenShot' in type 'PM_Main' is not assignable to the same property in base type 'PM'.
21
+ Type '(opts: object, cdpPage?: CdpPage | undefined) => void' is not assignable to type '(opts: object, page?: string | undefined) => any'.
22
+ Types of parameters 'cdpPage' and 'page' are incompatible.
23
+ Type 'string | undefined' is not assignable to type 'CdpPage | undefined'.
24
+ Type 'string' is not assignable to type 'CdpPage'.
25
+ src/PM/main.ts(800,24): error TS2339: Property 'status' does not exist on type '{ runTimeError?: number | "?" | undefined; typeErrors?: number | "?" | undefined; staticErrors?: number | "?" | undefined; prompt?: string | undefined; }'.
26
+ src/PM/main.ts(804,24): error TS2339: Property 'status' does not exist on type '{ runTimeError?: number | "?" | undefined; typeErrors?: number | "?" | undefined; staticErrors?: number | "?" | undefined; prompt?: string | undefined; }'.
27
+ src/PM/main.ts(1063,15): error TS2345: Argument of type 'Page' is not assignable to parameter of type 'Page | PromiseLike<Page>'.
28
+ Type 'import("/Users/adam/Code/testeranto/node_modules/puppeteer-core/lib/types").Page' is not assignable to type 'import("/Users/adam/Code/testeranto/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page").Page'.
29
+ Property '#private' in type 'Page' refers to a different member that cannot be accessed from within type 'Page'.
30
+ src/PM/node.ts(88,3): error TS2416: Property 'customScreenShot' in type 'PM_Node' is not assignable to the same property in base type 'PM'.
31
+ Type '(opts: ScreencastOptions, cdpPage: CdpPage) => any' is not assignable to type '(opts: object, page?: string | undefined) => any'.
32
+ Types of parameters 'cdpPage' and 'page' are incompatible.
33
+ Type 'string | undefined' is not assignable to type 'CdpPage'.
34
+ Type 'undefined' is not assignable to type 'CdpPage'.
35
+ src/ReportClient.tsx(159,38): error TS2345: Argument of type 'FunctionComponentElement<{}>' is not assignable to parameter of type 'ReactNode'.
36
+ Property 'children' is missing in type 'FunctionComponentElement<{}>' but required in type 'ReactPortal'.
37
+ src/SubPackages/react-dom/component/web.ts(90,13): error TS2345: Argument of type 'CElement<any, TesterantoComponent>' is not assignable to parameter of type 'ReactNode'.
38
+ Property 'children' is missing in type 'ComponentElement<any, TesterantoComponent>' but required in type 'ReactPortal'.
39
+ src/SubPackages/react-dom/jsx/node.ts(50,17): error TS2345: Argument of type 'FunctionComponentElement<any>' is not assignable to parameter of type 'I["istore"] | PromiseLike<I["istore"]>'.
40
+ Type 'FunctionComponentElement<any>' is not assignable to type 'I["istore"]'.
41
+ 'I["istore"]' could be instantiated with an arbitrary type which could be unrelated to 'FunctionComponentElement<any>'.
42
+ src/SubPackages/react-dom/jsx/web.ts(71,38): error TS2339: Property 'createRoot' does not exist on type 'typeof import("/Users/adam/Code/testeranto/node_modules/@types/react-dom/index")'.
43
+ src/SubPackages/react-test-renderer/component/interface.ts(16,52): error TS2345: Argument of type 'CElement<any, Component<any, any, any>>' is not assignable to parameter of type 'ReactElement<unknown, string | JSXElementConstructor<any>>'.
44
+ Types of property 'type' are incompatible.
45
+ Type 'ComponentClass<any, any>' is not assignable to type 'string | JSXElementConstructor<any>'.
46
+ Type 'ComponentClass<any, any>' is not assignable to type 'new (props: any) => Component<any, any, any>'.
47
+ Construct signature return types 'Component<any, any, any>' and 'Component<any, any, any>' are incompatible.
48
+ The types returned by 'render()' are incompatible between these types.
49
+ Type 'React.ReactNode' is not assignable to type 'import("/Users/adam/Code/testeranto/node_modules/@types/react-dom/node_modules/@types/react/index").ReactNode'.
50
+ Type 'ReactElement<any, string | JSXElementConstructor<any>>' is not assignable to type 'ReactNode'.
51
+ Property 'children' is missing in type 'ReactElement<any, string | JSXElementConstructor<any>>' but required in type 'ReactPortal'.
52
+ src/SubPackages/react-test-renderer/fc/node.ts(66,13): error TS2345: Argument of type 'DetailedReactHTMLElement<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>' is not assignable to parameter of type 'ReactElement<unknown, string | JSXElementConstructor<any>>'.
53
+ Types of property 'key' are incompatible.
54
+ Type 'Key | null' is not assignable to type 'string | null'.
55
+ Type 'number' is not assignable to type 'string'.
56
+ src/SubPackages/react-test-renderer/fc/node.ts(66,33): error TS2769: No overload matches this call.
57
+ The last overload gave the following error.
58
+ Argument of type 'I["isubject"]' is not assignable to parameter of type 'string | FunctionComponent<(c?: any) => I["given"]> | ComponentClass<(c?: any) => I["given"], any>'.
59
+ Type 'I["isubject"]' is not assignable to type 'ComponentClass<(c?: any) => I["given"], any>'.
60
+ src/SubPackages/react-test-renderer/fc/node.ts(81,13): error TS2339: Property 'unmount' does not exist on type 'I["istore"]'.
61
+ src/SubPackages/react-test-renderer/fc/web.ts(63,13): error TS2345: Argument of type 'DetailedReactHTMLElement<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>' is not assignable to parameter of type 'ReactElement<unknown, string | JSXElementConstructor<any>>'.
62
+ Types of property 'key' are incompatible.
63
+ Type 'Key | null' is not assignable to type 'string | null'.
64
+ Type 'number' is not assignable to type 'string'.
65
+ src/SubPackages/react-test-renderer/fc/web.ts(63,33): error TS2769: No overload matches this call.
66
+ The last overload gave the following error.
67
+ Argument of type 'I["isubject"]' is not assignable to parameter of type 'string | FunctionComponent<(c?: any) => I["given"]> | ComponentClass<(c?: any) => I["given"], any>'.
68
+ Type 'I["isubject"]' is not assignable to type 'ComponentClass<(c?: any) => I["given"], any>'.
69
+ src/SubPackages/react-test-renderer/jsx/index.ts(78,9): error TS2345: Argument of type 'CElement<any, Component<any, any, any>>' is not assignable to parameter of type 'ReactElement<unknown, string | JSXElementConstructor<any>>'.
70
+ Types of property 'type' are incompatible.
71
+ Type 'ComponentClass<any, any>' is not assignable to type 'string | JSXElementConstructor<any>'.
72
+ Type 'ComponentClass<any, any>' is not assignable to type 'new (props: any) => Component<any, any, any>'.
73
+ Construct signature return types 'Component<any, any, any>' and 'Component<any, any, any>' are incompatible.
74
+ The types returned by 'render()' are incompatible between these types.
75
+ Type 'React.ReactNode' is not assignable to type 'import("/Users/adam/Code/testeranto/node_modules/@types/react-dom/node_modules/@types/react/index").ReactNode'.
76
+ Type 'ReactElement<any, string | JSXElementConstructor<any>>' is not assignable to type 'ReactNode'.
77
+ Property 'children' is missing in type 'ReactElement<any, string | JSXElementConstructor<any>>' but required in type 'ReactPortal'.
78
+ src/SubPackages/react-test-renderer/jsx/node.ts(26,34): error TS2344: Type 'I' does not satisfy the constraint 'Ibdd_in<ReactTestRenderer, ReactTestRenderer, ReactTestRenderer, ReactTestRenderer, unknown, unknown, unknown>'.
79
+ Type 'Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>' is not assignable to type 'Ibdd_in<ReactTestRenderer, ReactTestRenderer, ReactTestRenderer, ReactTestRenderer, unknown, unknown, unknown>'.
80
+ Type 'unknown' is not assignable to type 'ReactTestRenderer'.
81
+ src/SubPackages/react-test-renderer/jsx/node.ts(27,33): error TS2344: Type 'I' does not satisfy the constraint 'Ibdd_in<ReactTestRenderer, ReactTestRenderer, ReactTestRenderer, ReactTestRenderer, unknown, unknown, unknown>'.
82
+ Type 'Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>' is not assignable to type 'Ibdd_in<ReactTestRenderer, ReactTestRenderer, ReactTestRenderer, ReactTestRenderer, unknown, unknown, unknown>'.
83
+ Type 'unknown' is not assignable to type 'ReactTestRenderer'.
84
+ src/SubPackages/react-test-renderer/jsx/web.ts(26,34): error TS2344: Type 'I' does not satisfy the constraint 'Ibdd_in<ReactTestRenderer, ReactTestRenderer, ReactTestRenderer, ReactTestRenderer, unknown, unknown, unknown>'.
85
+ Type 'Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>' is not assignable to type 'Ibdd_in<ReactTestRenderer, ReactTestRenderer, ReactTestRenderer, ReactTestRenderer, unknown, unknown, unknown>'.
86
+ Type 'unknown' is not assignable to type 'ReactTestRenderer'.
87
+ src/SubPackages/react-test-renderer/jsx/web.ts(27,33): error TS2344: Type 'I' does not satisfy the constraint 'Ibdd_in<ReactTestRenderer, ReactTestRenderer, ReactTestRenderer, ReactTestRenderer, unknown, unknown, unknown>'.
88
+ Type 'Ibdd_in<unknown, unknown, unknown, unknown, unknown, unknown, unknown>' is not assignable to type 'Ibdd_in<ReactTestRenderer, ReactTestRenderer, ReactTestRenderer, ReactTestRenderer, unknown, unknown, unknown>'.
89
+ Type 'unknown' is not assignable to type 'ReactTestRenderer'.
90
+ src/SubPackages/react-test-renderer/MemoExoticComponent/node.ts(43,37): error TS2345: Argument of type 'DetailedReactHTMLElement<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>' is not assignable to parameter of type 'ReactElement<unknown, string | JSXElementConstructor<any>>'.
91
+ Types of property 'key' are incompatible.
92
+ Type 'Key | null' is not assignable to type 'string | null'.
93
+ Type 'number' is not assignable to type 'string'.
94
+ src/SubPackages/react-test-renderer/MemoExoticComponent/node.ts(43,57): error TS2769: No overload matches this call.
95
+ The last overload gave the following error.
96
+ Argument of type 'I["isubject"]' is not assignable to parameter of type 'string | FunctionComponent<(c?: any) => I["given"]> | ComponentClass<(c?: any) => I["given"], any>'.
97
+ Type 'ReactTestRenderer' is not assignable to type 'string | FunctionComponent<(c?: any) => I["given"]> | ComponentClass<(c?: any) => I["given"], any>'.
98
+ Type 'I["isubject"]' is not assignable to type 'ComponentClass<(c?: any) => I["given"], any>'.
99
+ Type 'ReactTestRenderer' is not assignable to type 'ComponentClass<(c?: any) => I["given"], any>'.
100
+ Type 'ReactTestRenderer' provides no match for the signature 'new (props: (c?: any) => I["given"], context?: any): Component<(c?: any) => I["given"], any, any>'.
101
+ src/SubPackages/react/component/node.ts(84,14): error TS2349: This expression is not callable.
102
+ Type 'unknown' has no call signatures.
103
+ src/SubPackages/react/component/web.ts(83,14): error TS2349: This expression is not callable.
104
+ Type 'unknown' has no call signatures.
105
+ src/TestReport.tsx(155,56): error TS2739: Type '{ key: string; name: string; whens: { name: string; error: string; }[]; thens: { name: string; error: string; }[]; }' is missing the following properties from type '{ key: string; name: string; error: string[]; features: string[]; whens: { name: string; error: string; }[]; thens: { name: string; error: string; }[]; }': error, features
106
+ src/TestReport.tsx(172,38): error TS2345: Argument of type 'FunctionComponentElement<{}>' is not assignable to parameter of type 'ReactNode'.
107
+ Property 'children' is missing in type 'FunctionComponentElement<{}>' but required in type 'ReactPortal'.
108
+ info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
package/Bundle.Dockerfile DELETED
@@ -1,52 +0,0 @@
1
- FROM node:18.18.0
2
- RUN apt-get update && \
3
- apt-get install -y --no-install-recommends \
4
- python3 \
5
- make \
6
- g++ && \
7
- rm -rf /var/lib/apt/lists/*
8
- # FROM shivjm/node-chromium:node18-chromium81-alpine
9
-
10
-
11
-
12
- RUN yarn global add node-gyp
13
-
14
- RUN mkdir -p /usr/src/app
15
- RUN mkdir -p /usr/src/app/docs
16
- WORKDIR /usr/src/app
17
- COPY package.json /usr/src/app
18
- RUN yarn install
19
- COPY ./src/ /usr/src/app/src
20
- COPY ./subPackages/ /usr/src/app/subPackages
21
- COPY ./testeranto.mts /usr/src/app/testeranto.mts
22
- COPY ./tsconfig.json /usr/src/app/tsconfig.json
23
- COPY ./init.mts /usr/src/app/init.mts
24
- COPY ./bundle.mts /usr/src/app/bundle.mts
25
- COPY ./test.mts /usr/src/app/test.mts
26
-
27
- RUN yarn run init
28
-
29
- RUN apt-get update && apt-get install -y chromium
30
- RUN /usr/bin/chromium --no-sandbox --version > /etc/chromium-version
31
-
32
- ENV CHROMIUM_PATH=/usr/bin/chromium
33
- RUN yarn bundle
34
- # COPY ./docs/ /usr/src/app/docs
35
- # # COPY ./testeranto.json /usr/src/app/testeranto.json
36
- # # COPY prebuild.sh /usr/src/app
37
- # # COPY postBuild.sh /usr/src/app
38
-
39
-
40
- # # RUN yarn build
41
-
42
- # RUN cp ./node_modules/testeranto/dist/prebuild/TaskManBackEnd.mjs /usr/src/app/TaskManBackEnd.mjs
43
- # RUN cp ./node_modules/testeranto/dist/prebuild/TaskManFrontEnd.js /usr/src/app/TaskManFrontEnd.js
44
- # RUN cp ./node_modules/testeranto/dist/prebuild/TaskManFrontEnd.css /usr/src/app/TaskManFrontEnd.css
45
-
46
- # # RUN ts-node-esm ./node_modules/testeranto/dist/prebuild/TaskManBackEnd.mjs
47
-
48
- # EXPOSE 3000
49
- # EXPOSE 27017
50
- # ENV MONGO_HOST=host.docker.internal
51
- # # # CMD ['yarn', 'testeranto-testrun', '&', 'yarn', 'testeranto-taskman']
52
- CMD ["yarn", "test"]
package/bin/init-docs.js DELETED
@@ -1,24 +0,0 @@
1
- #!/usr/bin/env node
2
- import fs from "fs";
3
- import Init from "../dist/module/src/Init";
4
- console.log("Initializing a testeranto project");
5
-
6
-
7
-
8
- if (!process.argv[2]) {
9
- console.log("You didn't pass a config file, so I will create one for you.")
10
-
11
-
12
- fs.writeFileSync("testeranto.mts", fs.readFileSync("node_modules/testeranto/src/defaultConfig.ts"))
13
- import(process.cwd() + "/" + "testeranto.mts").then((module) => {
14
- Init(module.default);
15
- });
16
-
17
-
18
- }
19
- else {
20
- import(process.cwd() + "/" + process.argv[2]).then((module) => {
21
- Init(module.default);
22
- });
23
-
24
- }
@@ -1,40 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const fs_1 = __importDefault(require("fs"));
7
- exports.default = async (partialConfig) => {
8
- const config = Object.assign(Object.assign({}, partialConfig), { buildDir: process.cwd() + "/" + partialConfig.outdir });
9
- try {
10
- fs_1.default.mkdirSync(`${process.cwd()}/${config.outdir}`);
11
- }
12
- catch (_a) {
13
- // console.log()
14
- }
15
- fs_1.default.writeFileSync(`${config.outdir}/testeranto.json`, JSON.stringify(Object.assign(Object.assign({}, config), { buildDir: process.cwd() + "/" + config.outdir }), null, 2));
16
- try {
17
- fs_1.default.mkdirSync(`${process.cwd()}/${config.outdir}/node`);
18
- }
19
- catch (_b) {
20
- // console.log()
21
- }
22
- try {
23
- fs_1.default.mkdirSync(`${process.cwd()}/${config.outdir}/web`);
24
- }
25
- catch (_c) {
26
- // console.log()
27
- }
28
- try {
29
- fs_1.default.mkdirSync(`${process.cwd()}/${config.outdir}/features`);
30
- }
31
- catch (_d) {
32
- // console.log()
33
- }
34
- try {
35
- fs_1.default.mkdirSync(`${process.cwd()}/${config.outdir}/ts`);
36
- }
37
- catch (_e) {
38
- // console.log()
39
- }
40
- };
@@ -1,3 +0,0 @@
1
- {
2
- "type": "commonjs"
3
- }
@@ -1,40 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const fs_1 = __importDefault(require("fs"));
7
- exports.default = async (partialConfig) => {
8
- const config = Object.assign(Object.assign({}, partialConfig), { buildDir: process.cwd() + "/" + partialConfig.outdir });
9
- try {
10
- fs_1.default.mkdirSync(`${process.cwd()}/${config.outdir}`);
11
- }
12
- catch (_a) {
13
- // console.log()
14
- }
15
- fs_1.default.writeFileSync(`${config.outdir}/testeranto.json`, JSON.stringify(Object.assign(Object.assign({}, config), { buildDir: process.cwd() + "/" + config.outdir }), null, 2));
16
- try {
17
- fs_1.default.mkdirSync(`${process.cwd()}/${config.outdir}/node`);
18
- }
19
- catch (_b) {
20
- // console.log()
21
- }
22
- try {
23
- fs_1.default.mkdirSync(`${process.cwd()}/${config.outdir}/web`);
24
- }
25
- catch (_c) {
26
- // console.log()
27
- }
28
- try {
29
- fs_1.default.mkdirSync(`${process.cwd()}/${config.outdir}/features`);
30
- }
31
- catch (_d) {
32
- // console.log()
33
- }
34
- try {
35
- fs_1.default.mkdirSync(`${process.cwd()}/${config.outdir}/ts`);
36
- }
37
- catch (_e) {
38
- // console.log()
39
- }
40
- };
@@ -1,27 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.NodeTesteranto = void 0;
7
- const core_js_1 = __importDefault(require("./lib/core.js"));
8
- const index_js_1 = require("./lib/index.js");
9
- const node_js_1 = require("./PM/node.js");
10
- class NodeTesteranto extends core_js_1.default {
11
- constructor(input, testSpecification, testImplementation, testResourceRequirement, testInterface) {
12
- super(input, testSpecification, testImplementation, testResourceRequirement, testInterface, () => {
13
- // no-op
14
- });
15
- }
16
- async receiveTestResourceConfig(partialTestResource) {
17
- const t = JSON.parse(partialTestResource);
18
- const pm = new node_js_1.PM_Node(t);
19
- const { failed, artifacts, logPromise, features } = await this.testJobs[0].receiveTestResourceConfig(pm);
20
- // pm.customclose();
21
- return { features, failed };
22
- }
23
- }
24
- exports.NodeTesteranto = NodeTesteranto;
25
- exports.default = async (input, testSpecification, testImplementation, testInterface, testResourceRequirement = index_js_1.defaultTestResourceRequirement) => {
26
- return new NodeTesteranto(input, testSpecification, testImplementation, testResourceRequirement, testInterface);
27
- };
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PM = void 0;
4
- const fPaths = [];
5
- class PM {
6
- }
7
- exports.PM = PM;