Skip to content

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

Open
TheJaredWilcurt wants to merge 4 commits intonvh95:mainfrom
TheJaredWilcurt:vue-cli
Open

Jest-Preview + Vue 3 + Vue-CLI + Vue-Test-Utils#257
TheJaredWilcurt wants to merge 4 commits intonvh95:mainfrom
TheJaredWilcurt:vue-cli

Conversation

@TheJaredWilcurt
Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown
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