-
Notifications
You must be signed in to change notification settings - Fork 665
Closed
Labels

Description
Hello,
I noticed that my single file component which uses Component
from vue-class-component
is returning an empty html comment ('<!---->'
) when I print wrapper.html()
.
Component:
<template>
<div id="test">
Test
</div>
</template>
<script lang="ts">
import Vue from 'vue';
import Component from 'vue-class-component';
@Component({})
export default class Test extends Vue {
}
</script>
Mounting in test file:
const wrapper = mount(Test);
When not using vue-test-utils
, I see the same problem of the empty html comment being returned in vm.$el
when I mount the component like so: vm = new Vue(Test).$mount()
However I get the expected vm.$el
content when I mount the component like this instead:
const vm = new Test();
vm.$mount()
Which I saw in this issue vuejs/vue-class-component#75
Not sure if this issue should be filed to vue-class-component
instead.
Thanks in advance,
Kevin
gluons, kerlor, blake-newman, tbsvttr and Cobertos