Skip to content

Conversation

@dobromir-hristov
Copy link
Contributor

@dobromir-hristov dobromir-hristov commented May 4, 2020

Adds a basic implementation for shallowMount via MountOptions.shallow

I still need to add tests, but it seems to work great.

resolves #6

Copy link
Member

@lmiller1990 lmiller1990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was easy - mainly since you did all the hard work in stubs. Awesome!

Should we include a shallowMount function too, perhaps with a message "please use the shallow option. `shallowMount will be removed in a future release"? That might be useful for migration purposes.

shallow: true feels super clean to me! Not sure how others feel - happy to have a discussion around this if people feel strongly about a top level shallowMount method.

@lmiller1990
Copy link
Member

I think we move to beta once this is merged and docs are up to date.

@lmiller1990 lmiller1990 self-requested a review May 5, 2020 07:05
Copy link
Member

@lmiller1990 lmiller1990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anything else we want to add or is this good to merge? Code seems fine!

@dobromir-hristov
Copy link
Contributor Author

I dont think so.. I dont know if there is a point to add more tests. It is just mount with stubs :P

@lmiller1990 lmiller1990 merged commit 4155bdd into master May 5, 2020
@lmiller1990 lmiller1990 deleted the feat/shallow-mount branch May 5, 2020 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

epic: shallow: true mounting option (previously shallowMount)

3 participants