vechain/thor-devkit.js

@vechain/ethers dependency is breaking Jest testing

stuartwk opened this issue · 1 comments

When running Jest tests on a package that includes thor-devkit, the tests break with the following error...

Jest has detected the following 1 open handle potentially keeping Jest from exiting:

  ●  RANDOMBYTESREQUEST
      at Object.<anonymous>.module.exports (../../node_modules/@vechain/ethers/node_modules/uuid/rng.js:3:10)
      at Object.<anonymous> (../../node_modules/@vechain/ethers/node_modules/uuid/uuid.js:57:18)
      at Object.<anonymous> (../../node_modules/@vechain/ethers/utils/secret-storage.js:15:30)

this error can be ignored by removing the jest option --detectOpenHandles.