stubComponents
{ stubComponents : true | '<div/>' | {} }
Automatically stub all child components of the current component. This allows you to perform shallow rendering of a component.
If true
, it will automatically stub all known components. You can specify a template or component definition and this will be used for stubbing components.
{
stubComponents : true
}
{
stubComponents : '<span>stubbed</span>' // all child components will use this template
}
{
stubComponents : {
template : '<div/>'
}
}