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

[Feature] Add vue-testing-library as wrapper to vue-test-utils #495

Open
2 tasks done
devtobi opened this issue Nov 10, 2024 · 0 comments
Open
2 tasks done

[Feature] Add vue-testing-library as wrapper to vue-test-utils #495

devtobi opened this issue Nov 10, 2024 · 0 comments
Labels
Priority: Medium The issue contains work with medium priority. Template: Frontend Issues regarding the frontend template. Template: Webcomponent Issues regarding the webcomponent template. Type: Feature The issue is an feature
Milestone

Comments

@devtobi
Copy link
Member

devtobi commented Nov 10, 2024

Relevant template

refarch-frontend, refarch-webcomponent

Problem description (optional)

Testing with vue-test-utils can often be cumbersome and complex. On top of that, it does not test components from the user perspective but from the developer perspective by testing things like props, event invocation, computation of internal properties and so on.
Vue Testing Library allows to write tests for Vue Components that resemble the usage of the component from a user perspective and thus hides implementation details of Vue specific patterns and concepts. See https://testing-library.com/docs/vue-testing-library/intro for more information.

Desired solution

Add vue-testing-library to improve testing capabilities and write an example test which uses this new pattern.

Considered alternatives (optional)

  • keep vue-test-utils
  • use vue-test-utils and vue-testing-library in parallel.

Additional context (optional)

No response

No duplicate

  • I confirm that this issue is not a duplicate

Code of Conduct

  • I agree to follow this project's Code of Conduct
@devtobi devtobi added Template: Webcomponent Issues regarding the webcomponent template. Template: Frontend Issues regarding the frontend template. Type: Feature The issue is an feature Priority: Low The issue contains work with low priority. labels Nov 10, 2024
@devtobi devtobi moved this from Open to Accepted in it@M RefArch Templates Nov 20, 2024
@devtobi devtobi added Priority: Medium The issue contains work with medium priority. and removed Priority: Low The issue contains work with low priority. labels Nov 20, 2024
@DanielOber DanielOber added this to the Q1 milestone Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Medium The issue contains work with medium priority. Template: Frontend Issues regarding the frontend template. Template: Webcomponent Issues regarding the webcomponent template. Type: Feature The issue is an feature
Projects
Status: Accepted
Development

No branches or pull requests

2 participants