Skip to content
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

Alpha-0 API #26

Closed
18 tasks done
lmiller1990 opened this issue Mar 28, 2020 · 8 comments
Closed
18 tasks done

Alpha-0 API #26

lmiller1990 opened this issue Mar 28, 2020 · 8 comments
Labels

Comments

@lmiller1990
Copy link
Member

lmiller1990 commented Mar 28, 2020

I propose the following API for alpha-0. Progress is tracked here: https://github.com/vuejs/vue-test-utils-next/projects/1

Each of these has a ticket on the project board.

Exported methods

  • mount

shallowMount is not required for an alpha.

mounting options

VueWrapper

This is intentionally a minimal API. The primary way users will interact with their components is DOMWrapper in alpha.

DOMWrapper

This is the bulk of the functionality.

Ecosystem

We will also need to release an alpha-0 for vue-jest. Branch here: https://github.com/vuejs/vue-jest/tree/next. If we don't provide this, people won't be able to test SFCs.

Docs/Other

We should provide some examples on how to do things. We should also make sure it's possible to test things that were previously pain points, or new features:

  • transitions
  • suspense
  • portals

Nice to have

  • provide example tests with vuex/vue-router?
@JessicaSachs
Copy link
Contributor

RE: vue-jest we also need to finish the v4 alpha because Vue CLI is an entire major version behind

@lmiller1990
Copy link
Member Author

Only #2 remains

@afontcu
Copy link
Member

afontcu commented Apr 3, 2020

Also: are we still unable to merge vue-test-utils-next and vue-test-utils-next-docs due to vuepress version mismatch? I'd like to have them combined very much 🤔

@lmiller1990
Copy link
Member Author

We are unable to. You cannot have Vue 2 and Vue 3 installed in the same project or Vuepress will fail to run.

We could have a monorepo using lerna. This is easy to set up, if you like I can do it.

Alternatively, since I expect Vuepress will move to Vue 3 eventually, but until then use Vuepress + Vue 2 in this repo, and just have a bash script that installed Vue 2, builds Vuepress, for when you are working on docs.

@lmiller1990
Copy link
Member Author

Or we can have a docs branch that uses Vue 2. This might be best - thoughts @afontcu ? I'm keen to get some docs done so we can do an alpha.

@afontcu
Copy link
Member

afontcu commented Apr 3, 2020

Okay, let's keep it split for now, at least until Vuepress releases a Vue 3-based version :)

I believe I'll be able to work on catching docs up during the weekend.

@lmiller1990
Copy link
Member Author

lmiller1990 commented Apr 3, 2020

Sure, lmk if I can help with anything. I'm guessing the minimal we need is a

  • list of the APIs with example(s)
  • list of what is different to beta (I can do this)
  • whatever else you think makes sense

@lmiller1990
Copy link
Member Author

we did it

time to prepare for a quiet alpha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants