Created
February 18, 2016 07:30
-
-
Save vladimir-kotikov/eb8948744ae81ab7826b to your computer and use it in GitHub Desktop.
How to fake module path
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var lodash = require('lodash') // prime cache | |
require.cache[require.resolve('underscore')] = require.cache[require.resolve('lodash')] | |
require('assert').equal(require('underscore'), require('lodash')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment