testeranto 0.172.0 → 0.177.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 (203) hide show
  1. package/README.md +2 -4
  2. package/dist/common/src/PM/base.js +5 -1
  3. package/dist/common/src/PM/main.js +57 -54
  4. package/dist/common/src/PM/node.js +4 -1
  5. package/dist/common/src/PM/pure.js +4 -1
  6. package/dist/common/src/PM/web.js +6 -3
  7. package/dist/common/src/Pure.js +0 -4
  8. package/dist/common/src/Pure.test.js +1 -1
  9. package/dist/common/src/ReportServer.js +2 -126
  10. package/dist/common/src/ReportServer.test.ts/index.js +78 -0
  11. package/dist/common/src/ReportServerLib.js +141 -0
  12. package/dist/common/src/components/pure/ProjectPageView.test/implementation.js +1 -1
  13. package/dist/common/src/esbuildConfigs/node.js +1 -3
  14. package/dist/common/src/lib/BaseSuite.js +13 -11
  15. package/dist/common/src/lib/abstractBase.js +39 -40
  16. package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.implementation.js +10 -9
  17. package/dist/common/src/lib/baseBuilder.test/baseBuilder.test.specification.js +7 -7
  18. package/dist/common/src/lib/basebuilder.js +13 -2
  19. package/dist/common/src/lib/core.js +1 -0
  20. package/dist/common/src/lib/pmProxy.js +215 -201
  21. package/dist/common/src/lib/pmProxy.test/adapter.js +2 -2
  22. package/dist/common/src/lib/pmProxy.test/implementation.js +1 -1
  23. package/dist/common/testeranto.config.js +47 -32
  24. package/dist/common/tsconfig.common.tsbuildinfo +1 -1
  25. package/dist/module/src/PM/base.js +5 -1
  26. package/dist/module/src/PM/main.js +22 -19
  27. package/dist/module/src/PM/node.js +4 -1
  28. package/dist/module/src/PM/pure.js +4 -1
  29. package/dist/module/src/PM/web.js +6 -3
  30. package/dist/module/src/Pure.js +0 -4
  31. package/dist/module/src/Pure.test.js +1 -1
  32. package/dist/module/src/ReportServer.js +2 -123
  33. package/dist/module/src/ReportServer.test.ts/index.js +73 -0
  34. package/dist/module/src/ReportServerLib.js +134 -0
  35. package/dist/module/src/TestPage.js +29 -17
  36. package/dist/module/src/components/pure/ProjectPageView.test/implementation.js +1 -1
  37. package/dist/module/src/components/pure/TestPageView.js +29 -17
  38. package/dist/module/src/esbuildConfigs/node.js +1 -3
  39. package/dist/module/src/lib/BaseSuite.js +13 -11
  40. package/dist/module/src/lib/abstractBase.js +39 -40
  41. package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.implementation.js +10 -9
  42. package/dist/module/src/lib/baseBuilder.test/baseBuilder.test.specification.js +7 -7
  43. package/dist/module/src/lib/basebuilder.js +13 -2
  44. package/dist/module/src/lib/core.js +1 -0
  45. package/dist/module/src/lib/pmProxy.js +215 -201
  46. package/dist/module/src/lib/pmProxy.test/adapter.js +2 -2
  47. package/dist/module/src/lib/pmProxy.test/implementation.js +1 -1
  48. package/dist/module/testeranto.config.js +47 -32
  49. package/dist/module/tsconfig.module.tsbuildinfo +1 -1
  50. package/dist/prebuild/App.js +3 -3
  51. package/dist/prebuild/ReportServer.mjs +21 -9
  52. package/dist/prebuild/build.mjs +1 -1
  53. package/dist/prebuild/run.mjs +27 -20
  54. package/dist/types/src/PM/base.d.ts +1 -1
  55. package/dist/types/src/PM/node.d.ts +1 -1
  56. package/dist/types/src/PM/pure.d.ts +1 -1
  57. package/dist/types/src/PM/web.d.ts +1 -1
  58. package/dist/types/src/ReportServer.test.ts/index.d.ts +29 -0
  59. package/dist/types/src/ReportServerLib.d.ts +1 -0
  60. package/dist/types/src/Types.d.ts +0 -1
  61. package/dist/types/src/components/pure/ProjectPageView.test/index.d.ts +2 -1
  62. package/dist/types/src/lib/BaseSuite.d.ts +2 -0
  63. package/dist/types/src/lib/abstractBase.d.ts +5 -7
  64. package/dist/types/src/lib/baseBuilder.test/baseBuilder.test.types.d.ts +7 -4
  65. package/dist/types/src/lib/pmProxy.d.ts +3 -3
  66. package/dist/types/tsconfig.types.tsbuildinfo +1 -1
  67. package/package.json +3 -3
  68. package/src/PM/base.ts +7 -5
  69. package/src/PM/main.ts +26 -21
  70. package/src/PM/node.ts +6 -1
  71. package/src/PM/pure.ts +6 -1
  72. package/src/PM/web.ts +7 -3
  73. package/src/Pure.test.ts +6 -6
  74. package/src/Pure.ts +0 -8
  75. package/src/ReportServer.test.ts/index.ts +194 -0
  76. package/src/ReportServer.ts +2 -132
  77. package/src/ReportServerLib.ts +147 -0
  78. package/src/TestPage.tsx +65 -5
  79. package/src/Types.ts +0 -1
  80. package/src/components/pure/ProjectPageView.test/implementation.tsx +1 -1
  81. package/src/components/pure/TestPageView.tsx +65 -5
  82. package/src/esbuildConfigs/node.ts +1 -1
  83. package/src/lib/BaseSuite.ts +16 -21
  84. package/src/lib/abstractBase.ts +59 -48
  85. package/src/lib/baseBuilder.test/baseBuilder.test.implementation.ts +22 -10
  86. package/src/lib/baseBuilder.test/baseBuilder.test.specification.ts +9 -9
  87. package/src/lib/baseBuilder.test/baseBuilder.test.types.ts +7 -4
  88. package/src/lib/basebuilder.ts +13 -4
  89. package/src/lib/core.ts +1 -0
  90. package/src/lib/pmProxy.test/adapter.ts +2 -2
  91. package/src/lib/pmProxy.test/implementation.ts +3 -3
  92. package/src/lib/pmProxy.test/types.ts +0 -2
  93. package/src/lib/pmProxy.ts +135 -80
  94. package/testeranto/App.js +3 -3
  95. package/testeranto/bundles/node/core/metafile.json +8 -0
  96. package/testeranto/bundles/pure/core/metafile.json +8 -0
  97. package/testeranto/bundles/web/core/metafile.json +15086 -0
  98. package/testeranto/bundles/web/{allTests → core}/src/components/pure/ProjectPageView.test/index.html +1 -1
  99. package/testeranto/bundles/web/{allTests → core}/src/components/pure/ProjectPageView.test/index.mjs +4109 -1642
  100. package/testeranto/projects.json +1 -1
  101. package/testeranto/reports/core/config.json +24 -0
  102. package/testeranto/reports/{allTests → core}/src/components/pure/ProjectPageView.test/index/web/lint_errors.txt +6 -1
  103. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/logs.txt +59 -0
  104. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/message.txt +2 -0
  105. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/prompt.txt +27 -0
  106. package/testeranto/reports/core/src/components/pure/ProjectPageView.test/index/web/suite-0/given-basicRender/then-0/butThen/happyPath.png +0 -0
  107. package/testeranto/reports/{allTests → core}/src/components/pure/ProjectPageView.test/index/web/type_errors.txt +15 -33
  108. package/testeranto/reports/core/summary.json +9 -0
  109. package/testeranto.config.ts +49 -32
  110. package/tsc.log +78 -92
  111. package/testeranto/bundles/node/allTests/chunk-3EUGBAOM.mjs +0 -113
  112. package/testeranto/bundles/node/allTests/chunk-E75CSRER.mjs +0 -800
  113. package/testeranto/bundles/node/allTests/chunk-M6DO7VMB.mjs +0 -252
  114. package/testeranto/bundles/node/allTests/metafile.json +0 -1229
  115. package/testeranto/bundles/node/allTests/src/lib/BaseSuite.test/node.test.mjs +0 -323
  116. package/testeranto/bundles/node/allTests/src/lib/baseBuilder.test/baseBuilder.test.node.mjs +0 -223
  117. package/testeranto/bundles/node/allTests/src/lib/classBuilder.test/classBuilder.test.mjs +0 -411
  118. package/testeranto/bundles/node/allTests/src/lib/core.test/core.test.mjs +0 -528
  119. package/testeranto/bundles/node/allTests/src/lib/pmProxy.test/index.mjs +0 -4752
  120. package/testeranto/bundles/pure/allTests/chunk-KHDVEHF7.mjs +0 -185
  121. package/testeranto/bundles/pure/allTests/chunk-VMUSFSZM.mjs +0 -797
  122. package/testeranto/bundles/pure/allTests/metafile.json +0 -1054
  123. package/testeranto/bundles/pure/allTests/src/Pure.test.mjs +0 -429
  124. package/testeranto/bundles/pure/allTests/src/lib/BaseSuite.test/pure.test.mjs +0 -425
  125. package/testeranto/bundles/pure/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure.mjs +0 -381
  126. package/testeranto/bundles/web/allTests/chunk-HPYA4YZC.mjs +0 -2283
  127. package/testeranto/bundles/web/allTests/chunk-U7AW26HL.mjs +0 -997
  128. package/testeranto/bundles/web/allTests/metafile.json +0 -25
  129. package/testeranto/bundles/web/allTests/src/lib/BaseSuite.test/web.test.html +0 -19
  130. package/testeranto/bundles/web/allTests/src/lib/BaseSuite.test/web.test.mjs +0 -440
  131. package/testeranto/bundles/web/allTests/src/lib/baseBuilder.test/baseBuilder.test.web.html +0 -19
  132. package/testeranto/bundles/web/allTests/src/lib/baseBuilder.test/baseBuilder.test.web.mjs +0 -244
  133. package/testeranto/reports/allTests/config.json +0 -104
  134. package/testeranto/reports/allTests/src/Pure.test/pure/lint_errors.txt +0 -0
  135. package/testeranto/reports/allTests/src/Pure.test/pure/message.txt +0 -2
  136. package/testeranto/reports/allTests/src/Pure.test/pure/prompt.txt +0 -13
  137. package/testeranto/reports/allTests/src/Pure.test/pure/type_errors.txt +0 -101
  138. package/testeranto/reports/allTests/src/components/pure/ProjectPageView.test/index/web/bdd_errors.txt +0 -1
  139. package/testeranto/reports/allTests/src/components/pure/ProjectPageView.test/index/web/logs.txt +0 -50
  140. package/testeranto/reports/allTests/src/components/pure/ProjectPageView.test/index/web/message.txt +0 -2
  141. package/testeranto/reports/allTests/src/components/pure/ProjectPageView.test/index/web/prompt.txt +0 -17
  142. package/testeranto/reports/allTests/src/components/pure/ProjectPageView.test/index/web/tests.json +0 -32
  143. package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/bdd_errors.txt +0 -1
  144. package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/lint_errors.txt +0 -0
  145. package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/logs.txt +0 -52
  146. package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/message.txt +0 -2
  147. package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/prompt.txt +0 -13
  148. package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/tests.json +0 -31
  149. package/testeranto/reports/allTests/src/lib/BaseSuite.test/node.test/node/type_errors.txt +0 -111
  150. package/testeranto/reports/allTests/src/lib/BaseSuite.test/pure.test/pure/bdd_errors.txt +0 -1
  151. package/testeranto/reports/allTests/src/lib/BaseSuite.test/pure.test/pure/lint_errors.txt +0 -0
  152. package/testeranto/reports/allTests/src/lib/BaseSuite.test/pure.test/pure/message.txt +0 -2
  153. package/testeranto/reports/allTests/src/lib/BaseSuite.test/pure.test/pure/prompt.txt +0 -14
  154. package/testeranto/reports/allTests/src/lib/BaseSuite.test/pure.test/pure/tests.json +0 -31
  155. package/testeranto/reports/allTests/src/lib/BaseSuite.test/pure.test/pure/type_errors.txt +0 -111
  156. package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/bdd_errors.txt +0 -1
  157. package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/lint_errors.txt +0 -0
  158. package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/logs.txt +0 -108
  159. package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/message.txt +0 -2
  160. package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/prompt.txt +0 -14
  161. package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/tests.json +0 -31
  162. package/testeranto/reports/allTests/src/lib/BaseSuite.test/web.test/web/type_errors.txt +0 -111
  163. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/bdd_errors.txt +0 -1
  164. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/lint_errors.txt +0 -0
  165. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/logs.txt +0 -35
  166. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/message.txt +0 -2
  167. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/prompt.txt +0 -16
  168. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/tests.json +0 -77
  169. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.node/node/type_errors.txt +0 -62
  170. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/lint_errors.txt +0 -0
  171. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/message.txt +0 -2
  172. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/prompt.txt +0 -18
  173. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.pure/pure/type_errors.txt +0 -62
  174. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/bdd_errors.txt +0 -1
  175. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/lint_errors.txt +0 -0
  176. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/logs.txt +0 -69
  177. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/message.txt +0 -2
  178. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/prompt.txt +0 -16
  179. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/tests.json +0 -77
  180. package/testeranto/reports/allTests/src/lib/baseBuilder.test/baseBuilder.test.web/web/type_errors.txt +0 -62
  181. package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/bdd_errors.txt +0 -1
  182. package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/lint_errors.txt +0 -0
  183. package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/logs.txt +0 -700
  184. package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/message.txt +0 -2
  185. package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/prompt.txt +0 -16
  186. package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/tests.json +0 -164
  187. package/testeranto/reports/allTests/src/lib/classBuilder.test/classBuilder.test/node/type_errors.txt +0 -138
  188. package/testeranto/reports/allTests/src/lib/core.test/core.test/node/lint_errors.txt +0 -21
  189. package/testeranto/reports/allTests/src/lib/core.test/core.test/node/logs.txt +0 -7
  190. package/testeranto/reports/allTests/src/lib/core.test/core.test/node/message.txt +0 -2
  191. package/testeranto/reports/allTests/src/lib/core.test/core.test/node/prompt.txt +0 -18
  192. package/testeranto/reports/allTests/src/lib/core.test/core.test/node/type_errors.txt +0 -63
  193. package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/bdd_errors.txt +0 -1
  194. package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/lint_errors.txt +0 -20
  195. package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/logs.txt +0 -31
  196. package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/message.txt +0 -2
  197. package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/prompt.txt +0 -16
  198. package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/tests.json +0 -134
  199. package/testeranto/reports/allTests/src/lib/pmProxy.test/index/node/type_errors.txt +0 -76
  200. package/testeranto/reports/allTests/summary.json +0 -79
  201. package/testeranto/reportsnode_build_errors +0 -20
  202. package/testeranto/reportspure_build_errors +0 -343
  203. package/testeranto/reportsweb_build_errors +0 -25
package/tsc.log CHANGED
@@ -1,32 +1,8 @@
1
1
  $ /Users/adam/Code/testeranto/node_modules/.bin/tsc --noEmit
2
- node_modules/testeranto-react/src/mocks/mockReactComponent.tsx(58,9): error TS2554: Expected 3 arguments, but got 2.
3
- node_modules/testeranto-react/src/react-dom/component/dynamic.ts(6,19): error TS2305: Module '"testeranto/src/CoreTypes"' has no exported member 'ITestAdapter'.
4
2
  node_modules/testeranto-react/src/react-dom/component/dynamic.ts(50,45): error TS2339: Property 'subject' does not exist on type 'Readonly<{}>'.
5
- node_modules/testeranto-react/src/react-dom/component/web.ts(5,3): error TS2305: Module '"testeranto/src/CoreTypes"' has no exported member 'ITestAdapter'.
3
+ node_modules/testeranto-react/src/react-dom/component/dynamic.ts(104,26): error TS2345: Argument of type 'CElement<any, TesterantoComponent>' is not assignable to parameter of type 'ReactNode'.
4
+ Property 'children' is missing in type 'ComponentElement<any, TesterantoComponent>' but required in type 'ReactPortal'.
6
5
  node_modules/testeranto-react/src/react/component/index.ts(3,44): error TS2307: Cannot find module '../../../Types' or its corresponding type declarations.
7
- node_modules/testeranto/src/lib/basebuilder.ts(85,15): error TS2349: This expression is not callable.
8
- Not all constituents of type 'void | ((fPath: string, value: string | Buffer<ArrayBufferLike> | PassThrough) => void)' are callable.
9
- Type 'void' has no call signatures.
10
- node_modules/testeranto/src/lib/classBuilder.ts(90,18): error TS2556: A spread argument must either have a tuple type or be passed to a rest parameter.
11
- node_modules/testeranto/src/lib/classBuilder.ts(105,28): error TS2556: A spread argument must either have a tuple type or be passed to a rest parameter.
12
- node_modules/testeranto/src/lib/index.ts(22,3): error TS2322: Type '(subject: T["isubject"], initialValues: T["iinitialValues"], x: unknown, testResource: ITTestResourceConfiguration, pm: IPM) => Promise<T["isubject"]>' is not assignable to type '(subject: T["isubject"], initializer: (c?: any) => T["given"], testResource: ITTestResourceConfiguration, initialValues: any, pm: IPM) => Promise<...>'.
13
- Types of parameters 'initialValues' and 'initializer' are incompatible.
14
- Type '(c?: any) => T["given"]' is not assignable to type 'T["iinitialValues"]'.
15
- 'T["iinitialValues"]' could be instantiated with an arbitrary type which could be unrelated to '(c?: any) => T["given"]'.
16
- node_modules/testeranto/src/lib/index.ts(24,20): error TS2536: Type '"iinitialValues"' cannot be used to index type 'T'.
17
- node_modules/testeranto/src/lib/index.ts(46,13): error TS2349: This expression is not callable.
18
- Type 'unknown' has no call signatures.
19
- node_modules/testeranto/src/lib/index.ts(58,3): error TS2322: Type '{ assertThis?: ((x: T["then"]) => any) | undefined; andWhen?: ((store: T["istore"], whenCB: T["when"], testResource: ITTestResourceConfiguration, pm: IPM) => Promise<T["istore"]>) | undefined; ... 4 more ...; beforeEach?: ((subject: T["isubject"], initializer: (c?: any) => T["given"], testResource: ITTestResourceCon...' is not assignable to type 'ITestInterface<T>'.
20
- Types of property 'assertThis' are incompatible.
21
- Type '((x: T["then"]) => any) | undefined' is not assignable to type '(x: T["then"]) => any'.
22
- Type 'undefined' is not assignable to type '(x: T["then"]) => any'.
23
- node_modules/testeranto/src/PM/web.ts(56,12): error TS2304: Cannot find name 'opts'.
24
- node_modules/testeranto/src/PM/web.ts(57,57): error TS2304: Cannot find name 'opts'.
25
- node_modules/testeranto/src/PM/web.ts(59,7): error TS2663: Cannot find name 'page'. Did you mean the instance member 'this.page'?
26
- node_modules/testeranto/src/Web.ts(40,7): error TS2345: Argument of type 'ITestImplementation<I, O, M>' is not assignable to parameter of type 'Omit<{ suites: TestSuiteImplementation<O>; givens: TestGivenImplementation<I, O>; whens: TestWhenImplementation<I, O>; thens: TestThenImplementation<...>; checks: TestCheckImplementation<...>; }, keyof M> & M & { ...; }'.
27
- Type 'Omit<{ suites: TestSuiteImplementation<O>; givens: TestGivenImplementation<I, O>; whens: TestWhenImplementation<I, O>; thens: TestThenImplementation<...>; checks: TestCheckImplementation<...>; }, keyof M>' is missing the following properties from type '{ suites: Record<string, any>; givens: Record<string, any>; whens: Record<string, any>; thens: Record<string, any>; checks: Record<string, any>; }': suites, givens, whens, thens, checks
28
- node_modules/testeranto/src/Web.ts(48,14): error TS2554: Expected 0 arguments, but got 1.
29
- node_modules/testeranto/src/Web.ts(67,14): error TS2554: Expected 0 arguments, but got 1.
30
6
  src/App.tsx(45,34): error TS2339: Property 'createRoot' does not exist on type 'typeof import("/Users/adam/Code/testeranto/node_modules/@types/react-dom/index")'.
31
7
  src/App.tsx(55,10): error TS2339: Property 'App' does not exist on type 'Window & typeof globalThis'.
32
8
  src/App.tsx(57,3): error TS2740: Type 'typeof import("/Users/adam/Code/testeranto/node_modules/@types/react-dom/client")' is missing the following properties from type 'typeof import("/Users/adam/Code/testeranto/node_modules/@types/react-dom/index")': findDOMNode, unmountComponentAtNode, createPortal, flushSync, and 5 more.
@@ -44,22 +20,12 @@ src/components/pure/ProjectPageView.test/adapter.ts(12,3): error TS2719: Type '(
44
20
  Type '(state: IProjectPageViewProps & { container?: HTMLElement | undefined; }) => IProjectPageViewProps & { container?: HTMLElement | undefined; }' is not assignable to type 'IProjectPageViewProps & { container?: HTMLElement | undefined; }'.
45
21
  Type '(state: IProjectPageViewProps & { container?: HTMLElement | undefined; }) => IProjectPageViewProps & { container?: HTMLElement | undefined; }' is not assignable to type 'IProjectPageViewProps'.
46
22
  src/components/pure/ProjectPageView.test/adapter.ts(13,19): error TS2554: Expected 0 arguments, but got 2.
47
- src/components/pure/ProjectPageView.test/implementation.tsx(49,11): error TS2769: No overload matches this call.
48
- The last overload gave the following error.
49
- Argument of type 'Element' is not assignable to parameter of type 'ReactElement<unknown, string | JSXElementConstructor<any>>[]'.
50
- Type 'ReactElement<any, any>' is missing the following properties from type 'ReactElement<unknown, string | JSXElementConstructor<any>>[]': length, pop, push, concat, and 35 more.
51
- src/components/pure/ProjectPageView.test/implementation.tsx(49,12): error TS2686: 'React' refers to a UMD global, but the current file is a module. Consider adding an import instead.
52
- src/components/pure/ProjectPageView.test/implementation.tsx(69,9): error TS2322: Type '({ container }: IProjectPageViewProps & { container?: HTMLElement | undefined; }) => { container: HTMLElement | undefined; }' is not assignable to type '(state: IProjectPageViewProps & { container?: HTMLElement | undefined; }) => IProjectPageViewProps & { container?: HTMLElement | undefined; }'.
53
- Type '{ container: HTMLElement | undefined; }' is not assignable to type 'IProjectPageViewProps & { container?: HTMLElement | undefined; }'.
54
- Type '{ container: HTMLElement | undefined; }' is missing the following properties from type 'IProjectPageViewProps': summary, nodeLogs, webLogs, pureLogs, and 7 more.
55
- src/components/pure/ProjectPageView.test/implementation.tsx(71,34): error TS18048: 'container' is possibly 'undefined'.
56
- src/components/pure/ProjectPageView.test/implementation.tsx(73,73): error TS18048: 'container' is possibly 'undefined'.
57
- src/components/pure/ProjectPageView.test/implementation.tsx(80,9): error TS2322: Type '({ container }: IProjectPageViewProps & { container?: HTMLElement | undefined; }) => { container: HTMLElement | undefined; }' is not assignable to type '(state: IProjectPageViewProps & { container?: HTMLElement | undefined; }) => IProjectPageViewProps & { container?: HTMLElement | undefined; }'.
58
- Type '{ container: HTMLElement | undefined; }' is not assignable to type 'IProjectPageViewProps & { container?: HTMLElement | undefined; }'.
59
- Type '{ container: HTMLElement | undefined; }' is missing the following properties from type 'IProjectPageViewProps': summary, nodeLogs, webLogs, pureLogs, and 7 more.
60
- src/components/pure/ProjectPageView.test/implementation.tsx(81,18): error TS18048: 'container' is possibly 'undefined'.
23
+ src/components/pure/ProjectPageView.test/implementation.tsx(45,9): error TS2322: Type '({ container, html }: { container: any; html: any; }, pm: any) => Promise<void>' is not assignable to type '(state: IProjectPageViewProps & { container?: HTMLElement | undefined; }) => IProjectPageViewProps & { container?: HTMLElement | undefined; }'.
24
+ Target signature provides too few arguments. Expected 2 or more, but got 1.
25
+ src/components/pure/ProjectPageView.test/implementation.tsx(74,9): error TS2322: Type '({ container }: { container: any; }, pm: any) => Promise<{ container: any; }>' is not assignable to type '(state: IProjectPageViewProps & { container?: HTMLElement | undefined; }) => IProjectPageViewProps & { container?: HTMLElement | undefined; }'.
26
+ Target signature provides too few arguments. Expected 2 or more, but got 1.
61
27
  src/components/pure/ProjectPageView.test/index.ts(8,27): error TS2344: Type 'I' does not satisfy the constraint 'Ibdd_out'.
62
- Type 'I' is missing the following properties from type 'Ibdd_out': suites, givens, whens, thens, checks
28
+ Type 'I' is missing the following properties from type 'Ibdd_out': suites, givens, whens, thens
63
29
  src/components/pure/ProjectPageView.tsx(217,19): error TS18046: 'testData' is of type 'unknown'.
64
30
  src/components/pure/ProjectPageView.tsx(218,29): error TS18046: 'testData' is of type 'unknown'.
65
31
  src/components/pure/ProjectPageView.tsx(219,26): error TS18046: 'testData' is of type 'unknown'.
@@ -99,8 +65,7 @@ src/lib/abstractBase.test/MockGiven.ts(9,12): error TS2304: Cannot find name 'Ba
99
65
  src/lib/abstractBase.test/MockGiven.ts(24,12): error TS2349: This expression is not callable.
100
66
  Type 'unknown' has no call signatures.
101
67
  src/lib/abstractBase.test/types.ts(13,17): error TS2707: Generic type 'Ibdd_out' requires between 0 and 4 type arguments.
102
- src/lib/abstractBase.ts(244,17): error TS1196: Catch clause variable type annotation must be 'any' or 'unknown' if specified.
103
- src/lib/abstractBase.ts(301,39): error TS2554: Expected 1 arguments, but got 2.
68
+ src/lib/abstractBase.ts(322,39): error TS2554: Expected 1 arguments, but got 2.
104
69
  src/lib/baseBuilder.test/baseBuilder.test.adapter.ts(8,49): error TS2322: Type 'Promise<{}>' is not assignable to type 'Promise<BaseBuilder<any, any, any, any, any, any>>'.
105
70
  Type '{}' is missing the following properties from type 'BaseBuilder<any, any, any, any, any, any>': specs, assertThis, testResourceRequirement, artifacts, and 12 more.
106
71
  src/lib/baseBuilder.test/baseBuilder.test.adapter.ts(9,3): error TS2719: Type '(subject: import("/Users/adam/Code/testeranto/src/lib/basebuilder").BaseBuilder<any, any, any, any, any, any>, initializer: (c?: any) => () => import("/Users/adam/Code/testeranto/src/lib/basebuilder").BaseBuilder<any, any, any, any, any, any>, testResource: import("/Users/adam/Code/testeranto/src/lib/index").ITTestR...' is not assignable to type '(subject: import("/Users/adam/Code/testeranto/src/lib/basebuilder").BaseBuilder<any, any, any, any, any, any>, initializer: (c?: any) => () => import("/Users/adam/Code/testeranto/src/lib/basebuilder").BaseBuilder<any, any, any, any, any, any>, testResource: import("/Users/adam/Code/testeranto/src/lib/index").ITTestR...'. Two different types with this name exist, but they are unrelated.
@@ -112,23 +77,25 @@ src/lib/baseBuilder.test/baseBuilder.test.adapter.ts(25,25): error TS2739: Type
112
77
  src/lib/baseBuilder.test/baseBuilder.test.implementation.ts(19,5): error TS2322: Type '() => MockBaseBuilder<Ibdd_in_any, Ibdd_out_any, {}, {}, {}, {}>' is not assignable to type '() => () => BaseBuilder<any, any, any, any, any, any>'.
113
78
  Type 'MockBaseBuilder<Ibdd_in_any, Ibdd_out_any, {}, {}, {}, {}>' is not assignable to type '() => BaseBuilder<any, any, any, any, any, any>'.
114
79
  Type 'MockBaseBuilder<Ibdd_in_any, Ibdd_out_any, {}, {}, {}, {}>' provides no match for the signature '(): BaseBuilder<any, any, any, any, any, any>'.
115
- src/lib/baseBuilder.test/baseBuilder.test.implementation.ts(31,57): error TS2345: Argument of type '{}' is not assignable to parameter of type 'ITTestResourceRequest'.
116
- Property 'ports' is missing in type '{}' but required in type 'ITTestResourceRequest'.
117
- src/lib/baseBuilder.test/baseBuilder.test.implementation.ts(34,54): error TS2345: Argument of type '{}' is not assignable to parameter of type 'ITTestResourceRequest'.
118
- Property 'ports' is missing in type '{}' but required in type 'ITTestResourceRequest'.
119
- src/lib/baseBuilder.test/baseBuilder.test.implementation.ts(43,25): error TS2304: Cannot find name 'ITestJob'.
120
- src/lib/baseBuilder.test/baseBuilder.test.implementation.ts(50,32): error TS2322: Type '(builder: TestSubject) => TestSubject' is not assignable to type '(ssel: BaseBuilder<any, any, any, any, any, any>, utils: PM) => (store: any) => any'.
80
+ src/lib/baseBuilder.test/baseBuilder.test.implementation.ts(30,5): error TS2322: Type '(input: any) => MockBaseBuilder<Ibdd_in_any, Ibdd_out_any, {}, {}, {}, {}>' is not assignable to type '() => () => BaseBuilder<any, any, any, any, any, any>'.
81
+ Target signature provides too few arguments. Expected 1 or more, but got 0.
82
+ src/lib/baseBuilder.test/baseBuilder.test.implementation.ts(37,11): error TS2322: Type 'never[]' is not assignable to type 'number'.
83
+ src/lib/baseBuilder.test/baseBuilder.test.implementation.ts(41,5): error TS2322: Type '(requirements: ITTestResourceRequest) => MockBaseBuilder<Ibdd_in_any, Ibdd_out_any, {}, {}, {}, {}>' is not assignable to type '() => () => BaseBuilder<any, any, any, any, any, any>'.
84
+ Target signature provides too few arguments. Expected 1 or more, but got 0.
85
+ src/lib/baseBuilder.test/baseBuilder.test.implementation.ts(60,32): error TS2322: Type '(builder: BaseBuilder<any, any, any, any, any, any>, utils: PM) => BaseBuilder<any, any, any, any, any, any>' is not assignable to type '(ssel: BaseBuilder<any, any, any, any, any, any>, utils: PM) => (store: any) => any'.
86
+ Type 'BaseBuilder<any, any, any, any, any, any>' is not assignable to type '(store: any) => any'.
87
+ Type 'BaseBuilder<any, any, any, any, any, any>' provides no match for the signature '(store: any): any'.
88
+ src/lib/baseBuilder.test/baseBuilder.test.implementation.ts(66,100): error TS2339: Property 'constructor' does not exist on type 'never'.
89
+ src/lib/baseBuilder.test/baseBuilder.test.implementation.ts(87,46): error TS2322: Type '(builder: TestSubject) => TestSubject' is not assignable to type '(ssel: BaseBuilder<any, any, any, any, any, any>, utils: PM) => (store: any) => any'.
121
90
  Type 'TestSubject' is not assignable to type '(store: any) => any'.
122
91
  Type 'MockBaseBuilder<any, any, any, any, any, any>' provides no match for the signature '(store: any): any'.
123
- src/lib/baseBuilder.test/baseBuilder.test.implementation.ts(54,100): error TS2339: Property 'constructor' does not exist on type 'never'.
124
- src/lib/baseBuilder.test/baseBuilder.test.implementation.ts(75,27): error TS2322: Type '(builder: TestSubject) => TestSubject' is not assignable to type '(ssel: BaseBuilder<any, any, any, any, any, any>, utils: PM) => (store: any) => any'.
92
+ src/lib/baseBuilder.test/baseBuilder.test.implementation.ts(93,30): error TS2322: Type '(builder: TestSubject) => TestSubject' is not assignable to type '(ssel: BaseBuilder<any, any, any, any, any, any>, utils: PM) => (store: any) => any'.
125
93
  Type 'TestSubject' is not assignable to type '(store: any) => any'.
126
94
  Type 'MockBaseBuilder<any, any, any, any, any, any>' provides no match for the signature '(store: any): any'.
127
- src/lib/baseBuilder.test/baseBuilder.test.implementation.ts(81,24): error TS2322: Type '(builder: TestSubject) => TestSubject' is not assignable to type '(ssel: BaseBuilder<any, any, any, any, any, any>, utils: PM) => (store: any) => any'.
95
+ src/lib/baseBuilder.test/baseBuilder.test.implementation.ts(99,34): error TS2322: Type '(builder: TestSubject) => TestSubject' is not assignable to type '(ssel: BaseBuilder<any, any, any, any, any, any>, utils: PM) => (store: any) => any'.
128
96
  Type 'TestSubject' is not assignable to type '(store: any) => any'.
129
97
  Type 'MockBaseBuilder<any, any, any, any, any, any>' provides no match for the signature '(store: any): any'.
130
- src/lib/baseBuilder.test/baseBuilder.test.specification.ts(18,16): error TS2339: Property 'artifactsTracked' does not exist on type 'ThenSpecification<I, O>'.
131
- src/lib/basebuilder.ts(79,15): error TS2349: This expression is not callable.
98
+ src/lib/basebuilder.ts(80,15): error TS2349: This expression is not callable.
132
99
  Not all constituents of type 'void | ((fPath: string, value: string | Buffer<ArrayBufferLike> | PassThrough) => void)' are callable.
133
100
  Type 'void' has no call signatures.
134
101
  src/lib/BaseSuite.test/mock.ts(36,9): error TS2416: Property 'andWhen' in type 'MockWhen' is not assignable to the same property in base type 'BaseWhen<I>'.
@@ -139,20 +106,18 @@ src/lib/BaseSuite.test/mock.ts(36,9): error TS2416: Property 'andWhen' in type '
139
106
  Types of property 'testSelection' are incompatible.
140
107
  Type 'boolean | undefined' is not assignable to type 'boolean'.
141
108
  Type 'undefined' is not assignable to type 'boolean'.
109
+ src/lib/BaseSuite.test/mock.ts(59,3): error TS2416: Property 'addArtifact' in type 'MockWhen' is not assignable to the same property in base type 'BaseWhen<I>'.
110
+ Type '(name: string, content: string) => this' is not assignable to type '(path: string) => void'.
111
+ Target signature provides too few arguments. Expected 2 or more, but got 1.
142
112
  src/lib/BaseSuite.test/mock.ts(66,9): error TS2416: Property 'butThen' in type 'MockThen' is not assignable to the same property in base type 'BaseThen<I>'.
143
113
  Types of parameters 'thenCB' and 'thenCB' are incompatible.
144
114
  Type 'Promise<BaseSuite<any, any>>' is not assignable to type 'Promise<TestSelection>'.
145
115
  Property 'testSelection' is missing in type 'BaseSuite<any, any>' but required in type 'TestSelection'.
146
116
  src/lib/BaseSuite.test/mock.ts(83,7): error TS2353: Object literal may only specify known properties, and 'name' does not exist in type 'TestSelection'.
147
117
  src/lib/BaseSuite.test/mock.ts(126,10): error TS2322: Type 'MockWhen' is not assignable to type 'BaseWhen<I>'.
148
- Types of property 'andWhen' are incompatible.
149
- Type '(store: TestStore, whenCB: (store: TestStore) => Promise<TestStore>, testResource: any, pm: IPM) => Promise<TestStore>' is not assignable to type '(store: TestStore, whenCB: (x: TestSelection) => (store: TestStore) => Promise<TestSelection>, testResource: any, pm: IPM) => Promise<...>'.
150
- Types of parameters 'whenCB' and 'whenCB' are incompatible.
151
- Types of parameters 'x' and 'store' are incompatible.
152
- Type 'TestStore' is not assignable to type 'TestSelection'.
153
- Types of property 'testSelection' are incompatible.
154
- Type 'boolean | undefined' is not assignable to type 'boolean'.
155
- Type 'undefined' is not assignable to type 'boolean'.
118
+ Types of property 'addArtifact' are incompatible.
119
+ Type '(name: string, content: string) => MockWhen' is not assignable to type '(path: string) => void'.
120
+ Target signature provides too few arguments. Expected 2 or more, but got 1.
156
121
  src/lib/BaseSuite.test/mock.ts(126,41): error TS2322: Type 'Promise<{ testStore: boolean; }>' is not assignable to type '(store: TestStore) => Promise<TestSelection>'.
157
122
  Type 'Promise<{ testStore: boolean; }>' provides no match for the signature '(store: TestStore): Promise<TestSelection>'.
158
123
  src/lib/BaseSuite.test/mock.ts(129,13): error TS2322: Type 'Promise<{ testSelection: boolean; }>' is not assignable to type 'Promise<(store: TestStore) => Promise<TestSelection>>'.
@@ -161,14 +126,14 @@ src/lib/BaseSuite.test/mock.ts(129,13): error TS2322: Type 'Promise<{ testSelect
161
126
  src/lib/BaseSuite.test/test.ts(126,5): error TS2322: Type '() => MockSuite' is not assignable to type '() => () => Promise<TestStore>'.
162
127
  Type 'MockSuite' is not assignable to type '() => Promise<TestStore>'.
163
128
  Type 'MockSuite' provides no match for the signature '(): Promise<TestStore>'.
164
- src/lib/BaseSuite.test/test.ts(137,15): error TS2339: Property 'artifacts' does not exist on type 'MockSuite'.
129
+ src/lib/BaseSuite.test/test.ts(137,30): error TS2345: Argument of type 'Promise<unknown>' is not assignable to parameter of type 'string'.
165
130
  src/lib/BaseSuite.test/test.ts(144,15): error TS2339: Property 'specs' does not exist on type 'MockSuite'.
166
131
  src/lib/BaseSuite.test/test.ts(144,38): error TS2339: Property 'specs' does not exist on type 'MockSuite'.
167
132
  src/lib/BaseSuite.test/test.ts(151,15): error TS2339: Property 'testJobs' does not exist on type 'MockSuite'.
168
133
  src/lib/BaseSuite.test/test.ts(151,41): error TS2339: Property 'testJobs' does not exist on type 'MockSuite'.
169
134
  src/lib/BaseSuite.test/test.ts(157,7): error TS2322: Type '(suite: MockSuite) => Promise<MockSuite>' is not assignable to type '(zel: TestSelection, tr: ITTestResourceConfiguration, utils: PM) => Promise<(store: TestStore) => Promise<TestStore>>'.
170
135
  Types of parameters 'suite' and 'zel' are incompatible.
171
- Type 'TestSelection' is missing the following properties from type 'MockSuite': name, givens, store, testResourceConfiguration, and 9 more.
136
+ Type 'TestSelection' is missing the following properties from type 'MockSuite': name, givens, store, testResourceConfiguration, and 11 more.
172
137
  src/lib/BaseSuite.test/test.ts(178,11): error TS2322: Type '() => void' is not assignable to type '((selector: string) => boolean) | ((selector: string) => boolean) | ((selector: string, page: string) => Promise<unknown>)'.
173
138
  Type '() => void' is not assignable to type '(selector: string) => boolean'.
174
139
  Type 'void' is not assignable to type 'boolean'.
@@ -180,21 +145,20 @@ src/lib/BaseSuite.test/test.ts(199,13): error TS2345: Argument of type 'null' is
180
145
  src/lib/BaseSuite.test/test.ts(224,5): error TS2322: Type '(expectedName: string) => ((suite: MockSuite) => MockSuite)' is not assignable to type '(It_0: string) => (ssel: TestSelection, utils: PM) => (store: TestStore) => Promise<TestSelection>'.
181
146
  Type '(suite: MockSuite) => MockSuite' is not assignable to type '(ssel: TestSelection, utils: PM) => (store: TestStore) => Promise<TestSelection>'.
182
147
  Types of parameters 'suite' and 'ssel' are incompatible.
183
- Type 'TestSelection' is missing the following properties from type 'MockSuite': name, givens, store, testResourceConfiguration, and 9 more.
148
+ Type 'TestSelection' is missing the following properties from type 'MockSuite': name, givens, store, testResourceConfiguration, and 11 more.
184
149
  src/lib/BaseSuite.test/test.ts(244,5): error TS2322: Type '(expectedIndex: number) => ((suite: MockSuite) => MockSuite)' is not assignable to type '(It_0: number) => (ssel: TestSelection, utils: PM) => (store: TestStore) => Promise<TestSelection>'.
185
150
  Type '(suite: MockSuite) => MockSuite' is not assignable to type '(ssel: TestSelection, utils: PM) => (store: TestStore) => Promise<TestSelection>'.
186
151
  Types of parameters 'suite' and 'ssel' are incompatible.
187
- Type 'TestSelection' is missing the following properties from type 'MockSuite': name, givens, store, testResourceConfiguration, and 9 more.
152
+ Type 'TestSelection' is missing the following properties from type 'MockSuite': name, givens, store, testResourceConfiguration, and 11 more.
188
153
  src/lib/BaseSuite.test/test.ts(255,5): error TS2322: Type '(feature: string) => ((suite: MockSuite) => MockSuite)' is not assignable to type '(feature: string) => (ssel: TestSelection, utils: PM) => (store: TestStore) => Promise<TestSelection>'.
189
154
  Type '(suite: MockSuite) => MockSuite' is not assignable to type '(ssel: TestSelection, utils: PM) => (store: TestStore) => Promise<TestSelection>'.
190
155
  Types of parameters 'suite' and 'ssel' are incompatible.
191
- Type 'TestSelection' is missing the following properties from type 'MockSuite': name, givens, store, testResourceConfiguration, and 9 more.
156
+ Type 'TestSelection' is missing the following properties from type 'MockSuite': name, givens, store, testResourceConfiguration, and 11 more.
192
157
  src/lib/BaseSuite.test/test.ts(276,58): error TS2322: Type '(suite: MockSuite) => MockSuite' is not assignable to type '(ssel: TestSelection, utils: PM) => (store: TestStore) => Promise<TestSelection>'.
193
158
  Types of parameters 'suite' and 'ssel' are incompatible.
194
- Type 'TestSelection' is missing the following properties from type 'MockSuite': name, givens, store, testResourceConfiguration, and 9 more.
159
+ Type 'TestSelection' is missing the following properties from type 'MockSuite': name, givens, store, testResourceConfiguration, and 11 more.
195
160
  src/lib/BaseSuite.test/test.ts(328,19): error TS2339: Property 'specs' does not exist on type 'MockSuite'.
196
161
  src/lib/BaseSuite.test/test.ts(337,19): error TS2339: Property 'testJobs' does not exist on type 'MockSuite'.
197
- src/lib/BaseSuite.test/test.ts(345,19): error TS2339: Property 'artifacts' does not exist on type 'MockSuite'.
198
162
  src/lib/BaseSuite.test/test.ts(378,22): error TS2339: Property 'index' does not exist on type '() => Promise<TestStore>'.
199
163
  src/lib/BaseSuite.test/test.ts(379,22): error TS2339: Property 'store' does not exist on type '() => Promise<TestStore>'.
200
164
  src/lib/BaseSuite.test/test.ts(383,22): error TS2339: Property 'index' does not exist on type '() => Promise<TestStore>'.
@@ -294,22 +258,26 @@ src/lib/pmProxy.test/adapter.ts(36,3): error TS2322: Type '(input: any, testReso
294
258
  Target signature provides too few arguments. Expected 4 or more, but got 3.
295
259
  src/lib/pmProxy.test/adapter.ts(45,3): error TS2322: Type '(returnedFilePath: any, expectation: any) => void' is not assignable to type '(x: [IPM, "string"]) => any'.
296
260
  Target signature provides too few arguments. Expected 2 or more, but got 1.
297
- src/lib/pmProxy.test/implementation.ts(22,5): error TS2322: Type '(method: IProxiedFunctions, expectedPath: string) => (store: { butThenProxy: IProxy; }) => [undefined, undefined] | [string, string, any] | [any, string]' is not assignable to type '(...It: any) => (ssel: { proxies: ITestProxies; filepath: string; mockPm: IPM; }, utils: PM) => [IPM, "string"]'.
298
- Type '(store: { butThenProxy: IProxy; }) => [undefined, undefined] | [string, string, any] | [any, string]' is not assignable to type '(ssel: { proxies: ITestProxies; filepath: string; mockPm: IPM; }, utils: PM) => [IPM, "string"]'.
261
+ src/lib/pmProxy.test/implementation.ts(22,5): error TS2322: Type '(method: string, expectedPath: string) => (store: { pathRewriter: PathRewriter; }) => [undefined, undefined] | [string, string, any] | [any, string]' is not assignable to type '(...It: any) => (ssel: { proxies: ITestProxies; filepath: string; mockPm: IPM; }, utils: PM) => [IPM, "string"]'.
262
+ Type '(store: { pathRewriter: PathRewriter; }) => [undefined, undefined] | [string, string, any] | [any, string]' is not assignable to type '(ssel: { proxies: ITestProxies; filepath: string; mockPm: IPM; }, utils: PM) => [IPM, "string"]'.
299
263
  Types of parameters 'store' and 'ssel' are incompatible.
300
- Property 'butThenProxy' is missing in type '{ proxies: ITestProxies; filepath: string; mockPm: IPM; }' but required in type '{ butThenProxy: IProxy; }'.
264
+ Property 'pathRewriter' is missing in type '{ proxies: ITestProxies; filepath: string; mockPm: IPM; }' but required in type '{ pathRewriter: PathRewriter; }'.
265
+ src/lib/pmProxy.test/implementation.ts(24,31): error TS2304: Cannot find name 'PathRewriter'.
266
+ src/lib/pmProxy.test/implementation.ts(27,29): error TS2304: Cannot find name 'createPathRewriter'.
267
+ src/lib/pmProxy.test/implementation.ts(38,15): error TS2304: Cannot find name 'proxiedPm'.
301
268
  src/lib/pmProxy.test/implementation.ts(50,35): error TS2339: Property 'getLastCall' does not exist on type 'IPM'.
302
269
  Property 'getLastCall' does not exist on type 'PM_Pure'.
303
270
  src/lib/pmProxy.test/implementation.ts(51,38): error TS2339: Property 'getLastCall' does not exist on type 'IPM'.
304
271
  Property 'getLastCall' does not exist on type 'PM_Pure'.
272
+ src/lib/pmProxy.test/implementation.ts(55,15): error TS2304: Cannot find name 'proxiedPm'.
305
273
  src/lib/pmProxy.test/implementation.ts(58,35): error TS2339: Property 'getLastCall' does not exist on type 'IPM'.
306
274
  Property 'getLastCall' does not exist on type 'PM_Pure'.
307
- src/lib/pmProxy.test/implementation.ts(64,19): error TS2322: Type '"screen.png"' is not assignable to type '`${string}.webm`'.
275
+ src/lib/pmProxy.test/implementation.ts(62,15): error TS2304: Cannot find name 'proxiedPm'.
308
276
  src/lib/pmProxy.test/implementation.ts(70,35): error TS2339: Property 'getLastCall' does not exist on type 'IPM'.
309
277
  Property 'getLastCall' does not exist on type 'PM_Pure'.
310
278
  src/lib/pmProxy.test/implementation.ts(71,38): error TS2339: Property 'getLastCall' does not exist on type 'IPM'.
311
279
  Property 'getLastCall' does not exist on type 'PM_Pure'.
312
- src/lib/pmProxy.test/implementation.ts(75,44): error TS2322: Type '"shot.png"' is not assignable to type '`${string}.webm`'.
280
+ src/lib/pmProxy.test/implementation.ts(75,15): error TS2304: Cannot find name 'proxiedPm'.
313
281
  src/lib/pmProxy.test/implementation.ts(76,35): error TS2339: Property 'getLastCall' does not exist on type 'IPM'.
314
282
  Property 'getLastCall' does not exist on type 'PM_Pure'.
315
283
  src/lib/pmProxy.test/implementation.ts(93,5): error TS2322: Type '(expectedContent: any) => (result: any[]) => any[]' is not assignable to type '(...It: any) => (ssel: { proxies: ITestProxies; filepath: string; mockPm: IPM; }, utils: PM) => [IPM, "string"]'.
@@ -326,7 +294,7 @@ src/lib/pmProxy.test/mockPM.ts(23,3): error TS2416: Property 'launchSideCar' in
326
294
  Type '(n: number) => Promise<[number, any]>' is not assignable to type '(n: number, testName: string, projectName: string) => Promise<void>'.
327
295
  Type 'Promise<[number, any]>' is not assignable to type 'Promise<void>'.
328
296
  Type '[number, any]' is not assignable to type 'void'.
329
- src/lib/pmProxy.test/types.ts(21,17): error TS2707: Generic type 'Ibdd_out' requires between 0 and 4 type arguments.
297
+ src/lib/pmProxy.test/types.ts(19,17): error TS2707: Generic type 'Ibdd_out' requires between 0 and 4 type arguments.
330
298
  src/mothership/test.ts(66,7): error TS2554: Expected 2 arguments, but got 3.
331
299
  src/mothership/test.ts(72,13): error TS2322: Type '(x: any) => any' is not assignable to type 'string'.
332
300
  src/mothership/test.ts(101,20): error TS2304: Cannot find name 'IPartialNodeAdapter'.
@@ -359,15 +327,15 @@ src/PM/__tests__/webSidecar.testeranto.ts(94,38): error TS2322: Type 'boolean' i
359
327
  src/PM/__tests__/webSidecar.testeranto.ts(109,18): error TS2339: Property 'removeListenerCalled' does not exist on type 'PM'.
360
328
  src/PM/__tests__/webSidecar.testeranto.ts(118,20): error TS2304: Cannot find name 'IPartialNodeAdapter'.
361
329
  src/PM/__tests__/webSidecar.testeranto.ts(118,40): error TS2304: Cannot find name 'I'.
362
- src/PM/main.ts(817,38): error TS2345: Argument of type 'number | null' is not assignable to parameter of type 'number'.
330
+ src/PM/main.ts(822,38): error TS2345: Argument of type 'number | null' is not assignable to parameter of type 'number'.
363
331
  Type 'null' is not assignable to type 'number'.
364
- src/PM/main.ts(818,31): error TS2345: Argument of type 'number | null' is not assignable to parameter of type 'number'.
332
+ src/PM/main.ts(823,31): error TS2345: Argument of type 'number | null' is not assignable to parameter of type 'number'.
365
333
  Type 'null' is not assignable to type 'number'.
366
- src/PM/main.ts(984,6): error TS2366: Function lacks ending return statement and return type does not include 'undefined'.
367
- src/PM/main.ts(1022,27): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
368
- src/PM/main.ts(1150,16): error TS2339: Property 'sidecars' does not exist on type 'PM_Main'.
369
- src/PM/main.ts(1188,27): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
370
- src/PM/main.ts(1203,9): error TS2322: Type 'undefined' is not assignable to type '[number, ITTestResourceConfiguration]'.
334
+ src/PM/main.ts(989,6): error TS2366: Function lacks ending return statement and return type does not include 'undefined'.
335
+ src/PM/main.ts(1027,27): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
336
+ src/PM/main.ts(1155,16): error TS2339: Property 'sidecars' does not exist on type 'PM_Main'.
337
+ src/PM/main.ts(1193,27): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
338
+ src/PM/main.ts(1208,9): error TS2322: Type 'undefined' is not assignable to type '[number, ITTestResourceConfiguration]'.
371
339
  src/PM/main.ts(1473,9): error TS2532: Object is possibly 'undefined'.
372
340
  src/PM/pure.ts(114,3): error TS2416: Property 'customScreenShot' in type 'PM_Pure' is not assignable to the same property in base type 'PM'.
373
341
  Type '(opts: ScreencastOptions, page: string) => any' is not assignable to type '(opts: { path: string; }, page?: string | undefined) => any'.
@@ -391,6 +359,9 @@ src/ProjectPage.tsx(317,37): error TS2339: Property 'staticErrors' does not exis
391
359
  src/ProjectPage.tsx(397,45): error TS2339: Property 'tests' does not exist on type 'object'.
392
360
  src/Pure.test.ts(58,20): error TS2322: Type '{ pm: IPM; config: {}; proxies: { butThenProxy: (pm: IPM, path: string) => { writeFileSync: (p: string, c: string) => any; server: PuppetMasterServer; testResourceConfiguration: ITTestResourceConfiguration; } | { ...; } | { ...; }; andWhenProxy: (pm: IPM, path: string) => { ...; } | ... 1 more ... | { ...; }; before...' is not assignable to type '() => IPM'.
393
361
  Type '{ pm: IPM; config: {}; proxies: { butThenProxy: (pm: IPM, path: string) => { writeFileSync: (p: string, c: string) => any; server: PuppetMasterServer; testResourceConfiguration: ITTestResourceConfiguration; } | { ...; } | { ...; }; andWhenProxy: (pm: IPM, path: string) => { ...; } | ... 1 more ... | { ...; }; before...' provides no match for the signature '(): IPM'.
362
+ src/Pure.test.ts(65,54): error TS2554: Expected 1 arguments, but got 2.
363
+ src/Pure.test.ts(70,54): error TS2554: Expected 1 arguments, but got 2.
364
+ src/Pure.test.ts(75,64): error TS2554: Expected 1 arguments, but got 2.
394
365
  src/Pure.test.ts(82,5): error TS2322: Type '(proxyType: string) => (store: { pm: IPM; }) => { pm: IPM; } | { pm: {}; } | { largePayload: boolean; pm: { writeFileSync: (p: string, c: string) => boolean; server: PuppetMasterServer; testResourceConfiguration: ITTestResourceConfiguration; } | { ...; } | { ...; }; } | { ...; }' is not assignable to type '(Iw_0: string) => (zel: { pm: IPM; }, tr: ITTestResourceConfiguration, utils: PM) => Promise<(store: { pm: IPM; }) => { pm: IPM; }>'.
395
366
  Call signature return types '(store: { pm: IPM; }) => { pm: IPM; } | { pm: {}; } | { largePayload: boolean; pm: { writeFileSync: (p: string, c: string) => boolean; server: PuppetMasterServer; testResourceConfiguration: ITTestResourceConfiguration; } | { ...; } | { ...; }; } | { ...; }' and '(zel: { pm: IPM; }, tr: ITTestResourceConfiguration, utils: PM) => Promise<(store: { pm: IPM; }) => { pm: IPM; }>' are incompatible.
396
367
  Type '{ pm: IPM; } | { pm: {}; } | { largePayload: boolean; pm: { writeFileSync: (p: string, c: string) => boolean; server: PuppetMasterServer; testResourceConfiguration: ITTestResourceConfiguration; } | { ...; } | { ...; }; } | { ...; }' is not assignable to type 'Promise<(store: { pm: IPM; }) => { pm: IPM; }>'.
@@ -446,32 +417,47 @@ src/Pure.test.ts(189,5): error TS2322: Type '(expectedError: string) => (store:
446
417
  Call signature return types '(store: { pm: IPM; }) => { pm: IPM; }' and '(ssel: { pm: IPM; }, utils: PM) => (store: { pm: IPM; }) => { pm: IPM; }' are incompatible.
447
418
  Type '{ pm: IPM; }' is not assignable to type '(store: { pm: IPM; }) => { pm: IPM; }'.
448
419
  Type '{ pm: IPM; }' provides no match for the signature '(store: { pm: IPM; }): { pm: IPM; }'.
420
+ src/Pure.test.ts(191,40): error TS2554: Expected 1 arguments, but got 2.
449
421
  src/Pure.test.ts(202,33): error TS2322: Type '(store: { pm: IPM; }) => { pm: IPM; }' is not assignable to type '(ssel: { pm: IPM; }, utils: PM) => (store: { pm: IPM; }) => { pm: IPM; }'.
450
422
  Type '{ pm: IPM; }' is not assignable to type '(store: { pm: IPM; }) => { pm: IPM; }'.
451
423
  Type '{ pm: IPM; }' provides no match for the signature '(store: { pm: IPM; }): { pm: IPM; }'.
452
424
  src/Pure.test.ts(208,31): error TS2322: Type '(store: { pm: IPM; }) => { pm: IPM; }' is not assignable to type '(ssel: { pm: IPM; }, utils: PM) => (store: { pm: IPM; }) => { pm: IPM; }'.
453
425
  Type '{ pm: IPM; }' is not assignable to type '(store: { pm: IPM; }) => { pm: IPM; }'.
454
426
  Type '{ pm: IPM; }' provides no match for the signature '(store: { pm: IPM; }): { pm: IPM; }'.
427
+ src/Pure.test.ts(210,58): error TS2554: Expected 1 arguments, but got 2.
455
428
  src/Pure.test.ts(216,29): error TS2322: Type '(store: { pm: IPM; }) => { pm: IPM; }' is not assignable to type '(ssel: { pm: IPM; }, utils: PM) => (store: { pm: IPM; }) => { pm: IPM; }'.
456
429
  Type '{ pm: IPM; }' is not assignable to type '(store: { pm: IPM; }) => { pm: IPM; }'.
457
430
  Type '{ pm: IPM; }' provides no match for the signature '(store: { pm: IPM; }): { pm: IPM; }'.
458
431
  src/Pure.ts(32,7): error TS2345: Argument of type 'ITestImplementation<I, O, M>' is not assignable to parameter of type 'Omit<{ suites: TestSuiteImplementation<O>; givens: TestGivenImplementation<I, O>; whens: TestWhenImplementation<I, O>; thens: TestThenImplementation<...>; }, keyof M> & M & { ...; }'.
459
432
  Type 'Omit<{ suites: TestSuiteImplementation<O>; givens: TestGivenImplementation<I, O>; whens: TestWhenImplementation<I, O>; thens: TestThenImplementation<...>; }, keyof M>' is missing the following properties from type '{ suites: Record<string, any>; givens: Record<string, any>; whens: Record<string, any>; thens: Record<string, any>; }': suites, givens, whens, thens
460
- src/ReportServer.ts(107,33): error TS2339: Property 'status' does not exist on type 'Error'.
433
+ src/ReportServer.test.ts/index.ts(117,3): error TS2719: Type '(store: import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>, thenCB: import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>, testResource: import("/Users/adam/Code/testeranto/src/lib/index").ITTestResourceConfiguration, pm: im...' is not assignable to type '(store: import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>, thenCB: import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>, testResource: import("/Users/adam/Code/testeranto/src/lib/index").ITTestResourceConfiguration, pm: im...'. Two different types with this name exist, but they are unrelated.
434
+ Type 'Promise<Server<typeof IncomingMessage, typeof ServerResponse>>' is not assignable to type 'Promise<number>'.
435
+ Type 'Server<typeof IncomingMessage, typeof ServerResponse>' is not assignable to type 'number'.
436
+ src/ReportServer.test.ts/index.ts(174,51): error TS2304: Cannot find name 'IProjectPageViewProps'.
437
+ src/ReportServer.test.ts/index.ts(180,14): error TS2304: Cannot find name 'IProjectPageViewProps'.
438
+ src/ReportServer.test.ts/index.ts(182,10): error TS2304: Cannot find name 'IProjectPageViewProps'.
439
+ src/ReportServer.test.ts/index.ts(190,3): error TS2345: Argument of type '(port: number) => void' is not assignable to parameter of type '(port: number) => Server<typeof IncomingMessage, typeof ServerResponse>'.
440
+ Type 'void' is not assignable to type 'Server<typeof IncomingMessage, typeof ServerResponse>'.
441
+ src/ReportServer.ts(5,20): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'.
442
+ src/ReportServerLib.ts(111,33): error TS2339: Property 'status' does not exist on type 'Error'.
461
443
  src/TestPage.tsx(72,17): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'SetStateAction<string>'.
462
444
  Type 'undefined' is not assignable to type 'SetStateAction<string>'.
463
445
  src/TestPage.tsx(131,22): error TS2339: Property 'fails' does not exist on type 'TestData'.
464
446
  src/TestPage.tsx(163,16): error TS2739: Type '{ testName: string; testsExist: boolean; runTimeErrors: number; variant: "compact"; }' is missing the following properties from type 'TestStatusBadgeProps': typeErrors, staticErrors
465
- src/TestPage.tsx(258,32): error TS2339: Property 'artifacts' does not exist on type '{ name: string; whens: { name: string; error?: string | undefined; }[]; thens: { name: string; error?: string | undefined; }[]; }'.
466
- src/TestPage.tsx(265,49): error TS2339: Property 'artifacts' does not exist on type '{ name: string; whens: { name: string; error?: string | undefined; }[]; thens: { name: string; error?: string | undefined; }[]; }'.
467
- src/TestPage.tsx(268,38): error TS2339: Property 'artifacts' does not exist on type '{ name: string; whens: { name: string; error?: string | undefined; }[]; thens: { name: string; error?: string | undefined; }[]; }'.
468
- src/TestPage.tsx(293,35): error TS2339: Property 'artifacts' does not exist on type '{ name: string; error?: string | undefined; }'.
469
- src/TestPage.tsx(297,41): error TS2339: Property 'artifacts' does not exist on type '{ name: string; error?: string | undefined; }'.
470
- src/TestPage.tsx(322,35): error TS2339: Property 'artifacts' does not exist on type '{ name: string; error?: string | undefined; }'.
471
- src/TestPage.tsx(326,41): error TS2339: Property 'artifacts' does not exist on type '{ name: string; error?: string | undefined; }'.
447
+ src/TestPage.tsx(259,34): error TS2339: Property 'features' does not exist on type '{ name: string; whens: { name: string; error?: string | undefined; }[]; thens: { name: string; error?: string | undefined; }[]; }'.
448
+ src/TestPage.tsx(263,40): error TS2339: Property 'features' does not exist on type '{ name: string; whens: { name: string; error?: string | undefined; }[]; thens: { name: string; error?: string | undefined; }[]; }'.
449
+ src/TestPage.tsx(278,32): error TS2339: Property 'artifacts' does not exist on type '{ name: string; whens: { name: string; error?: string | undefined; }[]; thens: { name: string; error?: string | undefined; }[]; }'.
450
+ src/TestPage.tsx(285,49): error TS2339: Property 'artifacts' does not exist on type '{ name: string; whens: { name: string; error?: string | undefined; }[]; thens: { name: string; error?: string | undefined; }[]; }'.
451
+ src/TestPage.tsx(288,38): error TS2339: Property 'artifacts' does not exist on type '{ name: string; whens: { name: string; error?: string | undefined; }[]; thens: { name: string; error?: string | undefined; }[]; }'.
452
+ src/TestPage.tsx(312,39): error TS2339: Property 'features' does not exist on type '{ name: string; error?: string | undefined; }'.
453
+ src/TestPage.tsx(316,45): error TS2339: Property 'features' does not exist on type '{ name: string; error?: string | undefined; }'.
454
+ src/TestPage.tsx(333,35): error TS2339: Property 'artifacts' does not exist on type '{ name: string; error?: string | undefined; }'.
455
+ src/TestPage.tsx(337,41): error TS2339: Property 'artifacts' does not exist on type '{ name: string; error?: string | undefined; }'.
456
+ src/TestPage.tsx(361,39): error TS2339: Property 'features' does not exist on type '{ name: string; error?: string | undefined; }'.
457
+ src/TestPage.tsx(365,45): error TS2339: Property 'features' does not exist on type '{ name: string; error?: string | undefined; }'.
458
+ src/TestPage.tsx(382,35): error TS2339: Property 'artifacts' does not exist on type '{ name: string; error?: string | undefined; }'.
459
+ src/TestPage.tsx(386,41): error TS2339: Property 'artifacts' does not exist on type '{ name: string; error?: string | undefined; }'.
472
460
  src/utils/api.ts(69,54): error TS2304: Cannot find name 'testName'.
473
461
  src/Web.ts(43,7): error TS2345: Argument of type 'ITestImplementation<I, O, M>' is not assignable to parameter of type 'Omit<{ suites: TestSuiteImplementation<O>; givens: TestGivenImplementation<I, O>; whens: TestWhenImplementation<I, O>; thens: TestThenImplementation<...>; }, keyof M> & M & { ...; }'.
474
462
  Type 'Omit<{ suites: TestSuiteImplementation<O>; givens: TestGivenImplementation<I, O>; whens: TestWhenImplementation<I, O>; thens: TestThenImplementation<...>; }, keyof M>' is missing the following properties from type '{ suites: Record<string, any>; givens: Record<string, any>; whens: Record<string, any>; thens: Record<string, any>; }': suites, givens, whens, thens
475
- src/Web.ts(51,14): error TS2554: Expected 0 arguments, but got 1.
476
- src/Web.ts(73,14): error TS2554: Expected 0 arguments, but got 1.
477
463
  info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@@ -1,113 +0,0 @@
1
- import { createRequire } from 'module';const require = createRequire(import.meta.url);
2
- import {
3
- BaseGiven,
4
- BaseSuite,
5
- BaseThen,
6
- BaseWhen
7
- } from "./chunk-E75CSRER.mjs";
8
-
9
- // src/lib/BaseSuite.test/mock.ts
10
- var MockGiven = class extends BaseGiven {
11
- constructor(name, features, whens, thens) {
12
- super(
13
- name,
14
- features,
15
- whens,
16
- thens,
17
- async () => ({ testStore: true, testSelection: false }),
18
- // givenCB
19
- {}
20
- // initialValues
21
- );
22
- }
23
- async givenThat() {
24
- return { testStore: true, testSelection: false };
25
- }
26
- uberCatcher(e) {
27
- console.error("Given error 2:", e);
28
- }
29
- };
30
- var MockWhen = class extends BaseWhen {
31
- async andWhen(store, whenCB, testResource, pm) {
32
- console.log(
33
- "[DEBUG] MockWhen - andWhen - input store:",
34
- JSON.stringify(store)
35
- );
36
- const newStore = {
37
- ...store,
38
- testSelection: true
39
- // Ensure testSelection is set for assertions
40
- };
41
- console.log("[DEBUG] MockWhen - andWhen - calling whenCB");
42
- const result = await whenCB(newStore);
43
- console.log("[DEBUG] MockWhen - andWhen - result:", JSON.stringify(result));
44
- return result;
45
- }
46
- addArtifact(name, content) {
47
- return this;
48
- }
49
- };
50
- var MockThen = class extends BaseThen {
51
- async butThen(store, thenCB, testResourceConfiguration, pm) {
52
- console.log(
53
- "[DEBUG] MockThen - butThen - input store:",
54
- JSON.stringify(store)
55
- );
56
- if (!store) {
57
- throw new Error("Store is undefined in butThen");
58
- }
59
- const testSelection = {
60
- name: store.name,
61
- index: store.index,
62
- testSelection: store.testSelection || false,
63
- error: store.error ? true : void 0
64
- };
65
- console.log(
66
- "[DEBUG] MockThen - passing testSelection:",
67
- JSON.stringify(testSelection)
68
- );
69
- try {
70
- const result = await thenCB(testSelection);
71
- console.log(
72
- "[DEBUG] MockThen - received result:",
73
- JSON.stringify(result)
74
- );
75
- if (!result || typeof result.testSelection === "undefined") {
76
- throw new Error(
77
- `Invalid test selection result: ${JSON.stringify(result)}`
78
- );
79
- }
80
- return result;
81
- } catch (e) {
82
- console.error("[ERROR] MockThen - butThen failed:", e);
83
- throw e;
84
- }
85
- }
86
- };
87
- var MockSuite = class extends BaseSuite {
88
- constructor(name, index) {
89
- if (!name) {
90
- throw new Error("MockSuite requires a non-empty name");
91
- }
92
- console.log("[DEBUG] Creating MockSuite with name:", name, "index:", index);
93
- const suiteName = name || "testSuite";
94
- super(suiteName, index, {
95
- testGiven: new MockGiven(
96
- "testGiven",
97
- ["testFeature"],
98
- [new MockWhen("testWhen", () => Promise.resolve({ testStore: true }))],
99
- [
100
- new MockThen(
101
- "testThen",
102
- async () => Promise.resolve({ testSelection: true })
103
- )
104
- ]
105
- )
106
- });
107
- console.log("[DEBUG] MockSuite created:", this.name, this.index);
108
- }
109
- };
110
-
111
- export {
112
- MockSuite
113
- };