Skip to content
Sections
>> Trisquel >> Pakiety >> nabia >> javascript >> node-proxyquire
nabia  ] [  aramo  ]
[ Pakiet źródłowy: node-proxyquire  ]

Pakiet: 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.

Inne pakiety związane z node-proxyquire

  • wymaga
  • poleca
  • sugeruje
  • enh: node-sinon
    JavaScript test spies, stubs and mocks

Pobieranie node-proxyquire

Pobierz dla wszystkich dostępnych architektur
Architektura Rozmiar pakietu Rozmiar po instalacji Pliki
all 23,1 KiB113 KiB [lista plików]