You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An workaround should wrap the component with a root element (like this) then I can test:
it('should support returning more than one root node',()=>{constwrapper=mount({template: `<div><test></test></div>`,components: {test: {functional: true,render(h){return[h('span','foo'),h('span','bar')]}}}});expect(wrapper.html()).toBe('<span>foo</span><span>bar</span>')})
There is a way vue-test-utils wrap functional components with a root element and return an WrapperArray so we don't need create a root div manually?
Activity
fsblemos commentedon Jan 11, 2019
An workaround should wrap the component with a root element (like this) then I can test:
There is a way vue-test-utils wrap functional components with a root element and return an WrapperArray so we don't need create a root div manually?