Skip to content

Using external libraries #140

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

Closed
jdriesen opened this issue May 8, 2020 · 6 comments
Closed

Using external libraries #140

jdriesen opened this issue May 8, 2020 · 6 comments

Comments

@jdriesen
Copy link

jdriesen commented May 8, 2020

Hi,

First of all, thanks for sharing this great library.
It's really a great help !

I'm having a small question about using external libraries.
e.g. I would like to use to the jest-image-snapshot library.

Can you give me a some info about best practices ?
(an small example would be really great...)

Thanks in advance for your reply,

Kind regards,
Johnny Driesen
Belgium

@afontcu
Copy link
Member

afontcu commented May 8, 2020

Hi! Thank you for your kind words :)

I've never used this library before, but seems like you just need to pass in some DOM nodes, right? You could get container or baseElement from render(), and pass it down to jest-image-snapshot.

@jdriesen
Copy link
Author

jdriesen commented May 8, 2020

Thanks for your quick reply, @afontcu .
Gonna give it a try.
(though, I've to say I'm rather new to Vue Testing )

BTW: Thanks for all your documentation !
That's really a great help for a newbie like me.

@afontcu
Copy link
Member

afontcu commented May 8, 2020

Thanks! Going to close this up, feel free to ask for help in Spectrum and open new issues in the repo for potential bugs or missing features :)

@afontcu afontcu closed this as completed May 8, 2020
@jdriesen
Copy link
Author

jdriesen commented May 8, 2020

If I can ask ...

  • any particular reason why you're using kdc-scripts in your demo ? (confuses me a bit)
  • Seems that upgrading @vue/test-utils": "^1.0.0-beta.32 to the latest version (i.e. 1.0.2) breaks everything...

Can you give me a little help, please ?

@afontcu
Copy link
Member

afontcu commented May 8, 2020

any particular reason why you're using kdc-scripts in your demo ? (confuses me a bit)

Because Vue Testing Library is part of the Testing Library family, and almost all other projects use kcd-scripts as well. This way we can keep things similar across projects.

Seems that upgrading @vue/test-utils": "^1.0.0-beta.32 to the latest version (i.e. 1.0.2) breaks everything...

Yep, that's quite expected. We're working on it here: #139

Hope this helps!

@jdriesen
Copy link
Author

jdriesen commented May 8, 2020

Once again, thanks for your quick reply.
Thanks to you, I've learned already a lot today.

And I promise, next time, I'll use Spectrum for my questions.

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

No branches or pull requests

2 participants