IntegrationTestHelper
Integration test helper
Static Method Summary
| Static Public Methods | ||
| public static |
Wait for all the promises in the test to get resolved |
|
Constructor Summary
| Public Constructor | ||
| public |
constructor(reducers: ReduxReducers, middlewares: ReduxMiddlewares) Create an integration-test-helper |
|
Method Summary
| Public Methods | ||
| public |
Get a list with all dispach calls |
|
| public |
Get the last dispach call |
|
| public |
Get the current state object |
|
| public |
mount(component: ReactNode): EnzymeMount Mount a component with the store |
|
| public |
takeActionsSnapshot(description: string) Take a snapshot of all the actions |
|
| public |
takeLastActionSnapshot(description: string) Take a snapshot of the last called action |
|
| public |
takeStoreAndLastActionSnapshot(description: string) Take a snapshot of the store together with the last action call |
|
| public |
takeStoreSnapshot(description: string) Take a store snapshot |
|
Static Public Methods
Public Constructors
public constructor(reducers: ReduxReducers, middlewares: ReduxMiddlewares) source
Create an integration-test-helper
Params:
| Name | Type | Attribute | Description |
| reducers | ReduxReducers | reducers to apply |
|
| middlewares | ReduxMiddlewares | array of middlewares to apply |
Public Methods
public mount(component: ReactNode): EnzymeMount source
Mount a component with the store
Params:
| Name | Type | Attribute | Description |
| component | ReactNode | A react node to mount |
Return:
| EnzymeMount | Mounted component with enzyme and redux store |
public takeActionsSnapshot(description: string) source
Take a snapshot of all the actions
Params:
| Name | Type | Attribute | Description |
| description | string | Snapshoot description |
public takeLastActionSnapshot(description: string) source
Take a snapshot of the last called action
Params:
| Name | Type | Attribute | Description |
| description | string | Snapshoot description |
