-
Notifications
You must be signed in to change notification settings - Fork 671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Functional template can't be mounted #360
Comments
Does that only happen when the functional component is a completely empty one like yours? |
Hm, I think this rather is a problem with vue-jest. vue-test-utils never gets to see the https://github.com/eddyerburgh/vue-jest/blob/master/lib/process.js#L30-L38 /cc @eddyerburgh |
Thanks for the bug report 🙂 Could you please open this issue in vue-jest? As @LinusBorg says, this needs to be fixed there |
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: