VirgilSecurity / virgil-crypto-javascript

Virgil JavaScript Crypto Library is a high-level cryptographic library that allows you to perform all necessary operations for secure storing and transferring data and everything required to become HIPAA and GDPR compliant.
https://developer.virgilsecurity.com/docs/how-to#cryptography
BSD 3-Clause "New" or "Revised" License
35 stars 4 forks source link

Unit Testing with Jest -- FoundationError: One of the entropy sources failed. #97

Closed knightcode closed 10 months ago

knightcode commented 1 year ago

Jest coops module loading in javascript for the purposes of unit testing (not sure why), and it's causing initCrypto() to fail with the error:

FoundationError: One of the entropy sources failed.

I'm not sure if it's Jest that has to fix this or Virgil, but I do know that Virgil could debug this further to determine what's actually broken and pinpoint what Jest actually needs to fix or support.