Skip to content

Sub-component is undefined #47

@rndmerle

Description

@rndmerle

Hi.

When mounting a component including a sub-component I get this error:

TypeError: Cannot convert undefined or null to object

      at node_modules/vue-test-utils/dist/vue-test-utils.js:117:33
          at Array.forEach (<anonymous>)
      at stubAllComponents (node_modules/vue-test-utils/dist/vue-test-utils.js:115:37)
      at shallow (node_modules/vue-test-utils/dist/vue-test-utils.js:991:5)

When stubbing, it happens the component is undefined.

I'm using vue-test-utils 0.1.0
The lib might be loaded by ts-jest.

I'm still investigating but maybe you've got an idea.

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