Letter N

nodejs-rewire - Easy dependency injection for node.js unit testing

Website: https://www.npmjs.com/package/rewire
License: MIT
Vendor: Alcance Libre, Inc.
Description:
Rewire adds a special setter and getter to modules so you can
modify their behavior for better unit testing. You may:

* Inject mocks for other modules or globals like process
* Leak private variables
* Override variables within the module.

Rewire does not load the file and eval the contents to emulate
node's require mechanism. In fact it uses node's own require to
load the module. Thus your module behaves exactly the same in
your test environment as under regular circumstances (except
your modifications).

Packages

nodejs-rewire-2.5.2-8.fc14.al.src [22 KiB] Changelog by Fedora Release Engineering (2020-01-29):
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

Listing created by Repoview-0.6.6-6.fc14.al