vue-qrcode-reader icon indicating copy to clipboard operation
vue-qrcode-reader copied to clipboard

Test fail when run

Open Dois3d opened this issue 2 years ago • 0 comments

I'm new on Vue and Jest.

When i run my tests and mount my component that use the vue-qrcode-reader, they fail.

FAIL tests/views/pagamentos/frmBuscarQrcode.spec.js ● Test suite failed to run

TypeError: URL.createObjectURL is not a function

in my debbug, I noticed that the problem is in the barcode-detector, user in this project.

Can someone help?

basically, I assemble my component like this,

const wrapper = mount(frmBuscarQrcode, {store, localVue})

installed by NPM and imported like this,

import { QrcodeDropZone } from "vue-qrcode-reader";

Dois3d avatar Jul 29 '21 14:07 Dois3d