Type Parameters
-
Props
-
Queries extends Record<string, ComponentType<any> | keyof IntrinsicElements>
-
Callbacks extends Record<string, [keyof Queries & string, string]>
-
Properties extends Record<string, [keyof Queries, string]>
-
Hooks extends Record<string, ((...args) => any)>
Parameters
-
Component: ComponentType<Props>
-
defaultProps: Props
-
options: OptionsType<Queries, Callbacks, Properties, Hooks>
Returns ((props, hookValues?) => EngineType<Queries, Callbacks, Properties, Hooks>)
function that renders components and initializes accessors
-
- (props, hookValues?): EngineType<Queries, Callbacks, Properties, Hooks>
-
Parameters
-
props: Partial<Props>
-
hookValues: Partial<{
[Key in string | number | symbol]: ReturnType<Hooks[Key]>
}> = {}
Returns EngineType<Queries, Callbacks, Properties, Hooks>
engine for unit-testing
Creates engine for unit-testing of react component