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

Jest-Preview + Vue 3 + Vue-CLI + Vue-Test-Utils #257

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

TheJaredWilcurt
Copy link

Not ready to be merged yet

Changes:

  • Renamed examples\vue to examples\vue-testing-library. Since everyone in the Vue works uses @vue/test-utils, then @testing-library/vue should not be the default Vue example
  • Created a very standard Vue app using the official Vue-CLI (npm install -g @vue/cli && vue ui)
  • Changed testing settings to add jest-preview
  • Jest apparently detected TS somewhere else in this repo so I had to install ts-jest (never had to do that before, feels gross)
  • Set up basic testing example that works for both Testing Library and Vue Test Utils

@netlify
Copy link

netlify bot commented Sep 2, 2022

Deploy Preview for jest-preview-library canceled.

Name Link
🔨 Latest commit 290e3a1
🔍 Latest deploy log https://app.netlify.com/sites/jest-preview-library/deploys/63125945f44d0f000840a3e0

Comment on lines +1 to +2
// import { render } from '@testing-library/vue';
import { shallowMount as render } from '@vue/test-utils';
Copy link
Author

Choose a reason for hiding this comment

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

Uncomment the top line, then comment the second.

Try both with npm run jest

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.

1 participant