Skip to content

shallowMount fails with TypeError when component uses a data of type Symbol in it's template #1833

Open
@penguintree

Description

@penguintree

Version

1.1.4

Reproduction link

https://github.com/penguintree/vue-test-util-symbol-issue

Steps to reproduce

npm run test:unit

What is expected?

Unit tests should pass

What is actually happening?

One of the unit test fails with error :
TypeError: Failed to execute 'setAttribute' on 'Element': parameter 2 is a symbol, which cannot be converted to a string.


Possibly a regression in regards of this closed issue

Basically, it is not possible to shallowMount a component wich passes a Symbol to a child component.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions