Skip to content

new slot syntax template can't be accessed in shallowMountΒ #1261

Closed
@manonrichou

Description

@manonrichou

Version

1.0.0-beta.29

Reproduction link

https://codesandbox.io/embed/vue-template-dr6i7?fontsize=14&previewwindow=tests

Steps to reproduce

Run the two tests in the link. The one pointing to the old syntax's slot will pass, the one pointing to the new slot's syntax won't.

What is expected?

Template with v-slot syntax can be accessed in the test when using shallow mount.

What is actually happening?

The test pointing to the template using the new slot syntax fails, whereas the one with the soon-to-be deprecated syntax passes.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions