vue-qrcode-reader
vue-qrcode-reader copied to clipboard
Test fail when run
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";