Skip to content
Sections
>> Trisquel >> Packages >> nabia >> javascript >> node-proxyquire
nabia  ] [  aramo  ]
[ Source: node-proxyquire  ]

Package: node-proxyquire (2.1.3+~1.0.1+~1.0.2-9build4)

mocking tool to stub dependencies in Node.js

Proxyquire proxies nodejs's require in order to make overriding dependencies during testing easy while staying totally unobtrusive.

 * No changes to your code are necessary.
 * Non overridden methods of a module behave like the original.
 * Mocking framework agnostic,
   if it can stub a function then it works with proxyquire.
 * "use strict" compliant.

Other Packages Related to node-proxyquire

  • depends
  • recommends
  • suggests
  • enh: node-sinon
    JavaScript test spies, stubs and mocks

Download node-proxyquire

Download for all available architectures
Architecture Package Size Installed Size Files
all 23.1 kB113 kB [list of files]