Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImporting interface from vue component #189
Comments
Also running into this issue. |
I think this is the same issue, if not I can split into my own. While using jest + typescript I can't import non-default exports from mycomponent.vue: <template>
...
</template>
<script lang="ts">
export interface IMyComponent extends Vue {
...
};
export default Vue.extend({
...
});
</script> mycomponent.spec.ts (compiles fine normal build, blows up when running jest): import MyComponent, { IMyComponent } from "../mycomponent.vue"; someother.ts (compiles fine normal build): import MyComponent, { IMyComponent } from "../mycomponent.vue"; |
Hey,
I'm using ts-jest with vue-jest but I can't import interfaces from the .vue component files. I'm getting this error:
Does vue-jest support exporting interfaces? or maybe it is not related with vue-jest. Anyway, I appreciate some guidance on that. Thanks