Skip to content

Need support for code splitting #25

@chenxeed

Description

@chenxeed

Hi!

Currently I'm trying to code split my vue component with this way:

// App.vue

<style scoped src="./template/style.scss" lang="scss"></style>
<template src="./template/index.html"></template>
<script src="./script/index.js" type="text/javascript"></script>

And it seems that the vue-jest doesn't render the template. When I mount the component and check the vm.$el.innerHTML it's empty.

I see the comment in the docs:
https://vue-test-utils.vuejs.org/en/guides/testing-SFCs-with-jest.html

Note: vue-jest currently does not support all the features of vue-loader, for example custom block support and style loading. In addition, some webpack-specific features such as code-splitting are not supported either. 

So is the problem I faced is regarding the code splitting not supported yet?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions