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

docs: add setup information for Vue #686

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nickmccurdy
Copy link
Member

No description provided.

reduce some boilerplate. In these docs we'll demonstrate configuring Jest, but
you should be able to do similar things with
[any testing framework](#using-without-jest) (Vue Testing Library does not
require that you use Jest).
Copy link
Member Author

Choose a reason for hiding this comment

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

Are we missing some other important setup for Jest such as .vue support or is that included by default?

Copy link
Member

Choose a reason for hiding this comment

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

Hm, Single File Components requires an extra bundling step, so it might be less straightforward. For instance, we need to add "vue" to moduleFileExtensions, and also install vue-jest to process *.vue files.

Docs from the official library: https://vue-test-utils.vuejs.org/installation

Copy link
Contributor

Choose a reason for hiding this comment

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

I just had to set this up today and I can confirm that for single file components it does require following the steps described on the link shared by @afontcu above.

@MatanBobi
Copy link
Member

@nickmccurdy @afontcu is this still relevant or we can close it? :)

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.

None yet

4 participants