Describe the bug A clear and concise description of what the bug is.
Since the arrival of fireEvent.update and warning we are somehow forced to update the test to use it, but the problem is that it doesn't have support for input file making our tests fail when trying to use that new API but getting a warning when using input or change event type.
To Reproduce Steps to reproduce the behavior:
Create a component with an input file in it.
Test it with fireEvent.update
Expected behavior
I expected it to accept fileList or array of mock file like what we're using { target: { files: [mockFile] } } or from what I found from this PR
Describe the bug A clear and concise description of what the bug is.
Since the arrival of
fireEvent.update
andwarning
we are somehow forced to update the test to use it, but the problem is that it doesn't have support for input file making our tests fail when trying to use that new API but getting a warning when usinginput
orchange
event type.To Reproduce Steps to reproduce the behavior:
fireEvent.update
Expected behavior
I expected it to accept fileList or array of mock file like what we're using
{ target: { files: [mockFile] } }
or from what I found from this PRScreenshots
Related information:
@testing-library/vue
version: 5.4.1Vue
version: 2.6.11node
version: 12.19.0npm
(oryarn
) version: 6.14.8Relevant code or config (if any)
Additional context