Skip to content

feat: Add Stubs/Shallow Mount section #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
afontcu opened this issue Jun 5, 2020 · 6 comments · Fixed by #38
Closed

feat: Add Stubs/Shallow Mount section #29

afontcu opened this issue Jun 5, 2020 · 6 comments · Fixed by #38
Assignees

Comments

@afontcu
Copy link
Member

afontcu commented Jun 5, 2020

https://github.com/vuejs/vue-test-utils-next-docs/blob/master/src/guide/stubs-shallow-mount.md

@lmiller1990
Copy link
Member

I think @dobromir-hristov was interested in writing this one.

@NataliaTepluhina also has a lot of knowledge on how/when to use these from her experience working on a huge Vue codebase at GitLab. We should definitely ask if she can review this section.

@dobromir-hristov
Copy link
Contributor

Yep, give me a day or two :)

@lmiller1990
Copy link
Member

No rush 🖖

@lmiller1990
Copy link
Member

lmiller1990 commented Jul 13, 2020

I would like to work on this one, I have some ideas.

Main points:

  • stubs
  • shallow: true
  • the slot stuff
  • "old" vs "new" behavior

Will ping for a review in a day or two

@lmiller1990 lmiller1990 self-assigned this Jul 13, 2020
@afontcu
Copy link
Member Author

afontcu commented Jul 13, 2020

cool! Are you planning to add some pro's and con's of using stubs and shallow mount? Similar to what Cypress does on Testing Strategies for Network Requests.

disclaimer: it might not be the place, and that content might live somewhere else! 😇

@lmiller1990
Copy link
Member

lmiller1990 commented Jul 13, 2020

Yes, I think we should include pros and cons. This section should be unopinionated, though. I'll get a few reviews from different people on this one, especially @dobromir-hristov and @NataliaTepluhina who have a lot more experience than me with stubs and shallowMount in very large applications 👍

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 a pull request may close this issue.

3 participants