Skip to content

Instantly share code, notes, and snippets.

@jeffmo
Created May 15, 2014 01:57
Show Gist options
  • Save jeffmo/9f12003835c77d8fb8ac to your computer and use it in GitHub Desktop.
Save jeffmo/9f12003835c77d8fb8ac to your computer and use it in GitHub Desktop.
jest.dontMock('../example');
describe('example', function() {
it('does stuff', function() {
var underscore = require('underscore');
console.log('underscore', underscore.toString());
});
});
var underscore = require('underscore');
console.log(underscore);
{
"name": "jefftest",
"devDependencies": {
"jest-cli": "^0.1.2"
},
"dependencies": {
"underscore": "^1.6.0"
},
"scripts": {"test": "jest"},
"jest": {
"unmockedModulePathPatterns": [
"<rootDir>/node_modules/underscore"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment