testeranto 0.47.25 → 0.47.26

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 (36) hide show
  1. package/dist/common/subPackages/{react/jsx/mounted.web.js → react-dom/component/node.js} +2 -2
  2. package/dist/common/subPackages/react-dom/jsx/web.js +76 -0
  3. package/dist/common/tsconfig.common.tsbuildinfo +1 -1
  4. package/dist/module/subPackages/{react/jsx/mounted.web.js → react-dom/component/node.js} +1 -1
  5. package/dist/module/subPackages/react-dom/jsx/web.js +48 -0
  6. package/dist/module/tsconfig.module.tsbuildinfo +1 -1
  7. package/dist/types/Node.d.ts +9 -9
  8. package/dist/types/Web.d.ts +9 -9
  9. package/dist/types/subPackages/react/component/node.d.ts +10 -7
  10. package/dist/types/subPackages/react/jsx/node.d.ts +6 -4
  11. package/dist/types/subPackages/react/jsx/web.d.ts +6 -4
  12. package/dist/types/subPackages/react-dom/component/node.d.ts +19 -0
  13. package/dist/types/subPackages/react-dom/component/web.d.ts +19 -0
  14. package/dist/types/subPackages/react-dom/jsx/web.d.ts +16 -0
  15. package/dist/types/subPackages/react-test-render/component/node.d.ts +6 -6
  16. package/dist/types/subPackages/react-test-render/component/web.d.ts +6 -6
  17. package/dist/types/subPackages/react-test-render/jsx/node.d.ts +6 -6
  18. package/dist/types/subPackages/react-test-render/jsx/web.d.ts +7 -7
  19. package/dist/types/tsconfig.types.tsbuildinfo +1 -1
  20. package/package.json +1 -1
  21. package/src/Node.ts +21 -15
  22. package/src/Web.ts +19 -13
  23. package/src/subPackages/react/component/node.ts +38 -15
  24. package/src/subPackages/react/jsx/node.ts +19 -13
  25. package/src/subPackages/react/jsx/web.ts +19 -13
  26. package/src/subPackages/{react/jsx/mounted.web.ts → react-dom/component/node.ts} +24 -18
  27. package/src/subPackages/{react/component/mounted.web.ts → react-dom/component/web.ts} +23 -17
  28. package/src/subPackages/react-dom/jsx/web.ts +117 -0
  29. package/src/subPackages/react-test-render/component/node.ts +16 -10
  30. package/src/subPackages/react-test-render/component/web.ts +16 -10
  31. package/src/subPackages/react-test-render/jsx/node.ts +13 -7
  32. package/src/subPackages/react-test-render/jsx/web.ts +16 -11
  33. package/dist/types/subPackages/react/component/mounted.web.d.ts +0 -12
  34. package/dist/types/subPackages/react/jsx/mounted.web.d.ts +0 -12
  35. /package/dist/common/subPackages/{react/component/mounted.web.js → react-dom/component/web.js} +0 -0
  36. /package/dist/module/subPackages/{react/component/mounted.web.js → react-dom/component/web.js} +0 -0
@@ -6,36 +6,42 @@ import { ITestImplementation, ITestSpecification, ITTestShape } from "../../../c
6
6
 
7
7
  export type IInput = typeof React.Component;
8
8
  export type InitialState = unknown;
9
- export type WhenShape = any;
10
- export type ThenShape = any;
9
+ export type IWhenShape = any;
10
+ export type IThenShape = any;
11
11
  export type ISelection = {
12
12
  htmlElement: HTMLElement,
13
13
  reactElement: CElement<any, any>,
14
14
  };
15
15
 
16
- export type Store = {
16
+ export type IStore = {
17
17
  htmlElement: HTMLElement,
18
18
  reactElement: CElement<any, any>,
19
19
  };
20
20
 
21
- export type Subject = {
21
+ export type ISubject = {
22
22
  htmlElement: HTMLElement
23
23
  };
24
24
 
25
25
  export { };
26
26
  export const ReactTestRendererTesteranto = <
27
27
  ITestShape extends ITTestShape,
28
- PropShape,
29
- StateShape
28
+ IPropShape,
29
+ IStateShape
30
30
  >(
31
31
  testImplementations: ITestImplementation<
32
- PropShape,
32
+ IPropShape,
33
33
  renderer.ReactTestRenderer,
34
- WhenShape,
35
- ThenShape,
34
+ IWhenShape,
35
+ IThenShape,
36
36
  ITestShape
37
37
  >,
38
- testSpecifications: ITestSpecification<ITestShape>,
38
+ testSpecifications: ITestSpecification<
39
+ ITestShape,
40
+ ISubject,
41
+ IStore,
42
+ ISelection,
43
+ IThenShape
44
+ >,
39
45
  testInput: IInput,
40
46
  ) =>
41
47
  Testeranto<
@@ -6,19 +6,19 @@ import { ITTestShape, ITestImplementation, ITestSpecification } from "../../../c
6
6
 
7
7
  export type IInput = typeof React.Component;
8
8
  export type InitialState = unknown;
9
- export type WhenShape = any;
10
- export type ThenShape = any;
9
+ export type IWhenShape = any;
10
+ export type IThenShape = any;
11
11
  export type ISelection = {
12
12
  htmlElement: HTMLElement,
13
13
  reactElement: CElement<any, any>,
14
14
  };
15
15
 
16
- export type Store = {
16
+ export type IStore = {
17
17
  htmlElement: HTMLElement,
18
18
  reactElement: CElement<any, any>,
19
19
  };
20
20
 
21
- export type Subject = {
21
+ export type ISubject = {
22
22
  htmlElement: HTMLElement
23
23
  };
24
24
 
@@ -26,17 +26,23 @@ export { };
26
26
 
27
27
  export const ReactTestRendererTesteranto = <
28
28
  ITestShape extends ITTestShape,
29
- PropShape,
30
- StateShape
29
+ IPropShape,
30
+ IStateShape
31
31
  >(
32
32
  testImplementations: ITestImplementation<
33
- PropShape,
33
+ IPropShape,
34
34
  renderer.ReactTestRenderer,
35
- WhenShape,
36
- ThenShape,
35
+ IWhenShape,
36
+ IThenShape,
37
37
  ITestShape
38
38
  >,
39
- testSpecifications: ITestSpecification<ITestShape>,
39
+ testSpecifications: ITestSpecification<
40
+ ITestShape,
41
+ ISubject,
42
+ IStore,
43
+ ISelection,
44
+ IThenShape
45
+ >,
40
46
  testInput: IInput,
41
47
  ) =>
42
48
  Testeranto<
@@ -6,19 +6,19 @@ import { ITestImplementation, ITestSpecification, ITTestShape } from "../../../c
6
6
 
7
7
  export type IInput = typeof React.Component;
8
8
  export type InitialState = unknown;
9
- export type WhenShape = any;
10
- export type ThenShape = any;
9
+ export type IWhenShape = any;
10
+ export type IThenShape = any;
11
11
  export type ISelection = {
12
12
  htmlElement: HTMLElement,
13
13
  reactElement: CElement<any, any>,
14
14
  };
15
15
 
16
- export type Store = {
16
+ export type IStore = {
17
17
  htmlElement: HTMLElement,
18
18
  reactElement: CElement<any, any>,
19
19
  };
20
20
 
21
- export type Subject = {
21
+ export type ISubject = {
22
22
  htmlElement: HTMLElement
23
23
  };
24
24
 
@@ -31,11 +31,17 @@ export const ReactTestRendererTesteranto = <
31
31
  testImplementations: ITestImplementation<
32
32
  PropShape,
33
33
  renderer.ReactTestRenderer,
34
- WhenShape,
35
- ThenShape,
34
+ IWhenShape,
35
+ IThenShape,
36
36
  ITestShape
37
37
  >,
38
- testSpecifications: ITestSpecification<ITestShape>,
38
+ testSpecifications: ITestSpecification<
39
+ ITestShape,
40
+ ISubject,
41
+ IStore,
42
+ ISelection,
43
+ IThenShape
44
+ >,
39
45
  testInput: IInput,
40
46
  ) =>
41
47
  Testeranto<
@@ -5,20 +5,20 @@ import Testeranto from "../../../Web";
5
5
  import { ITTestShape, ITestImplementation, ITestSpecification } from "../../../core";
6
6
 
7
7
  export type IInput = typeof React.Component;
8
- export type InitialState = unknown;
9
- export type WhenShape = any;
10
- export type ThenShape = any;
8
+ export type IState = unknown;
9
+ export type IWhenShape = any;
10
+ export type IThenShape = any;
11
11
  export type ISelection = {
12
12
  htmlElement: HTMLElement,
13
13
  reactElement: CElement<any, any>,
14
14
  };
15
15
 
16
- export type Store = {
16
+ export type IStore = {
17
17
  htmlElement: HTMLElement,
18
18
  reactElement: CElement<any, any>,
19
19
  };
20
20
 
21
- export type Subject = {
21
+ export type ISubject = {
22
22
  htmlElement: HTMLElement
23
23
  };
24
24
 
@@ -26,17 +26,22 @@ export { };
26
26
 
27
27
  export const ReactTestRendererTesteranto = <
28
28
  ITestShape extends ITTestShape,
29
- PropShape,
30
- StateShape
29
+ IPropShape,
30
+ IStateShape
31
31
  >(
32
32
  testImplementations: ITestImplementation<
33
- PropShape,
33
+ IPropShape,
34
34
  renderer.ReactTestRenderer,
35
- WhenShape,
36
- ThenShape,
35
+ IWhenShape,
36
+ IThenShape,
37
37
  ITestShape
38
38
  >,
39
- testSpecifications: ITestSpecification<ITestShape>,
39
+ testSpecifications: ITestSpecification<
40
+ ITestShape,
41
+ ISubject,
42
+ IStore,
43
+ ISelection,
44
+ IThenShape>,
40
45
  testInput: IInput,
41
46
  ) =>
42
47
  Testeranto<
@@ -1,12 +0,0 @@
1
- import React, { CElement } from "react";
2
- import { ITTestShape, ITestImplementation } from "../../../core";
3
- declare type IInput = typeof React.Component;
4
- declare type InitialState = unknown;
5
- declare type WhenShape = any;
6
- declare type ThenShape = any;
7
- declare type ISelection = {
8
- htmlElement: HTMLElement;
9
- reactElement: CElement<any, any>;
10
- };
11
- declare const _default: <ITestShape extends ITTestShape>(testImplementations: ITestImplementation<unknown, ISelection, any, any, ITestShape>, testSpecifications: any, testInput: IInput) => Promise<void>;
12
- export default _default;
@@ -1,12 +0,0 @@
1
- import React, { CElement } from "react";
2
- import { ITTestShape, ITestImplementation } from "../../../core";
3
- declare type IInput = typeof React.Component;
4
- declare type InitialState = unknown;
5
- declare type WhenShape = any;
6
- declare type ThenShape = any;
7
- declare type ISelection = {
8
- htmlElement: HTMLElement;
9
- reactElement: CElement<any, any>;
10
- };
11
- declare const _default: <ITestShape extends ITTestShape>(testImplementations: ITestImplementation<unknown, ISelection, any, any, ITestShape>, testSpecifications: any, testInput: IInput) => Promise<void>;
12
- export default _default;