test: add Scanner component test suite (unit + integration) - 45 test cases covering rendering, callbacks, zoom, pause state, accessibility, and stability

This commit is contained in:
2026-04-18 17:49:54 +00:00
parent b086fb172e
commit 9e1644aef5
2 changed files with 708 additions and 0 deletions

View File

@@ -51,6 +51,14 @@ vi.mock('html5-qrcode', () => ({
zoomRatios: [1, 2, 3, 4],
}))
},
Html5QrcodeSupportedFormats: {
QR_CODE: 'QR_CODE',
CODE_128: 'CODE_128',
CODE_39: 'CODE_39',
EAN_13: 'EAN_13',
UPC_A: 'UPC_A',
DATA_MATRIX: 'DATA_MATRIX',
},
}))
// ============================================================================