vm

The return value is the component instance, so all data, props, computed values, methods, etc. can be accessible directly:

const vm = vuenit.component(c);
c.myProp;
c.computedValue;
c.myMethod();
c.myInjectedObject;
// Any internal vue variables can also be accessed:
c.$el.querySelector('div');

The instance is also given a number of additional properties and methods to help testing.

results matching ""

    No results matching ""