function mountTriggerEvent ({target = defaultTarget, events = leftClick, app = basicApp, ...config} = {}) {
	const {configure} = require('..');
	const log = jest.fn();
	configure(Object.assign({log}, defaultConfig, config));
	const wrapper = mount(app, {attachTo: container});
	const targetNode = typeof target === 'string' ? wrapper.find(target).getDOMNode() : target;
	coerceArray(events).forEach(evt => evt(targetNode));
	wrapper.detach();
	return log;
}
// Configures analytics, mounts a test app, triggers events, and then returns the mocked log function object
Configures analytics, mounts a test app, triggers events, and then returns the mocked log function object
Configures analytics mounts a test app triggers events and then returns the mocked log function object
function mountTriggerEvent ({target = defaultTarget, events = leftClick, app = basicApp, ...config} = {}) {
	const {configure} = require('..');
	const log = jest.fn();
	configure(Object.assign({log}, defaultConfig, config));
	const wrapper = mount(app, {attachTo: container});
	const targetNode = typeof target === 'string' ? wrapper.find(target).getDOMNode() : target;
	coerceArray(events).forEach(evt => evt(targetNode));
	wrapper.detach();
	return log;
}
function mountTriggerEvent ( { target = defaultTarget , events = leftClick , app = basicApp , ... config } = { } ) { const { configure } = require ( '..' ) ; const log = jest . fn ( ) ; configure ( Object . assign ( { log } , defaultConfig , config ) ) ; const wrapper = mount ( app , { attachTo : container } ) ; const targetNode = typeof target === 'string' ? wrapper . find ( target ) . getDOMNode ( ) : target ; coerceArray ( events ) . forEach ( evt => evt ( targetNode ) ) ; wrapper . detach ( ) ; return log ; }
Configures analytics, mounts a test app, triggers events, and then returns the mocked log function object
Configures analytics mounts a test app triggers events and then returns the mocked log function object