* Create a File with a working arrayBuffer() method for jsdom.
(data: Uint8Array, name: string, type = 'image/png')
| 19 | * Create a File with a working arrayBuffer() method for jsdom. |
| 20 | */ |
| 21 | function makeMockFile(data: Uint8Array, name: string, type = 'image/png'): File { |
| 22 | return buildReadableBinaryFile({ contents: data, name, type }); |
| 23 | } |
| 24 | |
| 25 | afterEach(() => { |
| 26 | vi.restoreAllMocks(); |
no test coverage detected