chore: add comment

This commit is contained in:
Nolan Lawson 2024-03-09 11:01:44 -08:00
parent 947102a2d9
commit 22219c0dca
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ export async function jsonChecksum (object) {
let inBuffer = binaryStringToArrayBuffer(inString)
/* istanbul ignore else */
if (import.meta.env.MODE === 'test') {
// For whatever reason crypto throws an error for ArrayBuffers in Vitest
// Issue with ArrayBuffer in jsdom https://github.com/vitest-dev/vitest/issues/5365
inBuffer = Buffer.from(new Uint8Array(inBuffer))
}