vechain / thor-devkit.js

Typescript library to aid DApp development on VeChain Thor
MIT License
39 stars 30 forks source link

@vechain/ethers dependency is breaking Jest testing #29

Closed stuartwk closed 3 years ago

stuartwk commented 3 years ago

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)
qianbin commented 3 years ago

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