Commit e27418ca authored by Felix Geisendörfer's avatar Felix Geisendörfer Committed by Ryan Dahl
Browse files

Prefer require.cache over native module cache

This patch changes node's module loading behavior so that the
require.cache is always the first place to consider when loading a
module.

The motivation for this change is to help people who are writing
focused tests for their node.js applications, and need a mechanism
to inject test doubles to replace native node.js modules.
parent a59483bd
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment