question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.type doesn't work with vue-testing-library

See original GitHub issue

Hi! First of all, thank you for your work on this repo!

I wanted to highlight that the current implementation of .type() isn’t working when used with vue-testing-library.

Not quite sure why yet thou, I believe it has something to do with using fireEvent.change instead of fireEvent.input here. I have passing tests using fireEvent.input, and the minute I change them to use .change, they start failing. Is there any reason to prefer change event over input?

Thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:17 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
afontcucommented, Aug 27, 2019

I guess this can be closed now 😃

0reactions
calebebycommented, Jul 19, 2019

@Gpx do you think you could review my 4 open PR’s pretty soon? I’d love to continue moving forward with making user-event compatible with all libraries 🎉

@mxstbr Opened PR for that just now ✔️ https://github.com/testing-library/user-event/pull/141

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vue3 Testing Library - vue-i18n not loading text - Stack Overflow
I am using the next version of @vue/test-utils and vue-jest ... schema for the resource type MessageSchema = typeof deDE export function ...
Read more >
Testing Vue Applications With The Vue Testing Library
The Vue Testing library can help you to test your applications by mirroring the way that a user would interact with them.
Read more >
Better testing with Vue Test Utils - 30 Days of Vue - Fullstack.io
Better testing with Vue Test Utils. #. Today, we'll look at Vue's official testing library called Vue Test Utils that makes testing fun...
Read more >
Vue Testing with Vue Test Utils - YouTube
In this video we will cover Vue testing with Vue Test Utils which uses Jest under the hood.Timeline:0:00 - Setup10:37 - Test Structure17:15 ......
Read more >
User Centric Tests with Testing Library - Vue.js Course
Interact with your app the same way as your users. Let's write some tests, and see how it compares to Vue Test Utils...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found