{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/375","labels_url":"https://api.github.com/repos/facebook/jest/issues/375/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/375/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/375/events","html_url":"https://github.com/facebook/jest/issues/375","id":78910014,"number":375,"title":"Manual mocks example not working","user":{"login":"markross","id":91958,"avatar_url":"https://avatars.githubusercontent.com/u/91958?v=3","gravatar_id":"","url":"https://api.github.com/users/markross","html_url":"https://github.com/markross","followers_url":"https://api.github.com/users/markross/followers","following_url":"https://api.github.com/users/markross/following{/other_user}","gists_url":"https://api.github.com/users/markross/gists{/gist_id}","starred_url":"https://api.github.com/users/markross/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markross/subscriptions","organizations_url":"https://api.github.com/users/markross/orgs","repos_url":"https://api.github.com/users/markross/repos","events_url":"https://api.github.com/users/markross/events{/privacy}","received_events_url":"https://api.github.com/users/markross/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-21T09:28:14Z","updated_at":"2015-10-24T18:03:13Z","closed_at":"2015-10-24T18:03:13Z","body":"I am trying to run the manual mocks example however I am getting this error. Node v0.10.38, using Jest v0.4.5 cloned directly from git repo.  I have tried the same test in Jest v0.3 and it doesn't work either. However it DOES work in v0.2.  From what I can see, it seems to be loading the real `fs` module rather than the mock.\r\n```\r\n> @ test /Users/markross/jest/examples/manual_mocks\r\n> node ../../bin/jest.js\r\n\r\nUsing Jest CLI v0.4.5\r\n FAIL  __tests__/FileSummarizer-test.js (0.016s)\r\n● FileSummarizer › listFilesInDirectorySync › it includes all files in the directory in the summary\r\n  - TypeError: Object [object Object] has no method '__setMockFiles'\r\n        at Spec.<anonymous> (/Users/markross/jest/examples/manual_mocks/__tests__/FileSummarizer-test.js:15:21)\r\n        at jasmine.Block.execute (/Users/markross/jest/vendor/jasmine/jasmine-1.3.0.js:1065:17)\r\n        at jasmine.Queue.next_ (/Users/markross/jest/vendor/jasmine/jasmine-1.3.0.js:2098:31)\r\n        at null._onTimeout (/Users/markross/jest/vendor/jasmine/jasmine-1.3.0.js:2088:18)\r\n        at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)\r\n  - Error: ENOENT, no such file or directory '/path/to'\r\n      at Object.fs.readdirSync (fs.js:666:18)\r\n      at Object.summarizeFilesInDirectorySync (/Users/markross/jest/examples/manual_mocks/FileSummarizer.js:4:13)\r\n      at Spec.<anonymous> (/Users/markross/jest/examples/manual_mocks/__tests__/FileSummarizer-test.js:20:40)\r\n      at [object Object].jasmine.Block.execute (/Users/markross/jest/vendor/jasmine/jasmine-1.3.0.js:1065:17)\r\n      at [object Object].jasmine.Queue.next_ (/Users/markross/jest/vendor/jasmine/jasmine-1.3.0.js:2098:31)\r\n      at [object Object]._onTimeout (/Users/markross/jest/vendor/jasmine/jasmine-1.3.0.js:2088:18)\r\n      at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)\r\n\r\n1 test failed, 0 tests passed (1 total)\r\nRun time: 0.948s\r\nnpm ERR! Test failed.  See above for more details.\r\nnpm ERR! not ok code 0\r\n"}}