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

vue with vue-testing-librray example #42

Merged
merged 10 commits into from
Jun 21, 2022
Merged

vue with vue-testing-librray example #42

merged 10 commits into from
Jun 21, 2022

Conversation

nvh95
Copy link
Owner

@nvh95 nvh95 commented Apr 9, 2022

Features

  • Add vue-testing-librray example to work with jest-preview Add example for vue #39
    • Support file transform
    • Supoprt import css transform

Future work

How to test

cd jest-preview
npm install
npm run build:watch // Build code for code transformation
cd examples/vue-testing-library // Navigate to Vue Example
npm install // Install dependency for the example
npm run jest-preview // Open Jest Preview Server 
npm run test // You should see the UI updated every time you hit "Save" 

Snapshot

Jest Preview with Vue

@nvh95 nvh95 linked an issue Apr 9, 2022 that may be closed by this pull request
@nvh95
Copy link
Owner Author

nvh95 commented Apr 9, 2022

Real App UI:
Real App

UI after run preview.debug():
Snapshot UI from jest.debug()

It looks better than I expect.

@nvh95 nvh95 changed the title vue-testing-librray example vue with vue-testing-librray example May 26, 2022
@netlify
Copy link

netlify bot commented May 26, 2022

Deploy Preview for jest-preview-library ready!

Name Link
🔨 Latest commit c59b9d6
🔍 Latest deploy log https://app.netlify.com/sites/jest-preview-library/deploys/62b1ea01933fe6000825853a
😎 Deploy Preview https://deploy-preview-42--jest-preview-library.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@nvh95 nvh95 added the future work needed Merged PR or Closed Issue but need to visit in the future label Jun 21, 2022
@nvh95 nvh95 marked this pull request as ready for review June 21, 2022 15:57
@nvh95
Copy link
Owner Author

nvh95 commented Jun 21, 2022

We are going to write our own vue code transformation later. For now, let get this PR merged.

@nvh95 nvh95 merged commit ec250f1 into main Jun 21, 2022
@nvh95 nvh95 deleted the vue-examples branch June 21, 2022 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
future work needed Merged PR or Closed Issue but need to visit in the future
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add example for vue
1 participant