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
Hm, I think this rather is a problem with vue-jest. vue-test-utils never gets to see the <template> element as that's converted when impotrting the component into the test file. So vue-jest has to make sure that functional: true is set on that component's options. However it seems that vue-jest does something different, namely kind of converting a functional component into a "normal" one....
Version
1.0.0-beta.10
Reproduction link
https://github.com/noamcore/functional-template
Steps to reproduce
What is expected?
The component can be tested using
<template functional/>
.What is actually happening?
Error saying that mount.context can only be used when mounting a functional component
Functional component using
functional
attribute on template is on Vue 2.5.0 .The text was updated successfully, but these errors were encountered: