foone,
@foone@digipres.club avatar

I can't mock the query because it's a method on a class instance, and the mocking library doesn't work right with ES2016 classes. I can't replace the require because it's using the new ECMAScript modules and not common.js require(). I can't mock the HTTP requests because it's not being done with the older http.request but with fetch, which as of node v18 is now native and not backed by a http.request polyfill

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • khanakhh
  • magazineikmin
  • osvaldo12
  • GTA5RPClips
  • mdbf
  • Youngstown
  • tacticalgear
  • slotface
  • rosin
  • kavyap
  • ethstaker
  • everett
  • thenastyranch
  • DreamBathrooms
  • megavids
  • InstantRegret
  • cubers
  • normalnudes
  • Leos
  • ngwrru68w68
  • cisconetworking
  • modclub
  • Durango
  • provamag3
  • anitta
  • tester
  • JUstTest
  • lostlight
  • All magazines