Skip to content
Sections
>> Trisquel >> 软件包 >> aramo >> javascript >> node-proxyquire
nabia  ] [  aramo  ]
[ 源代码: node-proxyquire  ]

软件包: node-proxyquire (2.1.3+~1.0.1+~1.0.2-12)

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.

其他与 node-proxyquire 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • enh: node-sinon
    JavaScript test spies, stubs and mocks

下载 node-proxyquire

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
all 24.5 kB118 kB [文件列表]