{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/3154","repository_url":"https://api.github.com/repos/facebook/jest","labels_url":"https://api.github.com/repos/facebook/jest/issues/3154/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/3154/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/3154/events","html_url":"https://github.com/facebook/jest/issues/3154","id":214592593,"number":3154,"title":"Build a kick-ass fs mock.","user":{"login":"cpojer","id":13352,"avatar_url":"https://avatars0.githubusercontent.com/u/13352?v=4","gravatar_id":"","url":"https://api.github.com/users/cpojer","html_url":"https://github.com/cpojer","followers_url":"https://api.github.com/users/cpojer/followers","following_url":"https://api.github.com/users/cpojer/following{/other_user}","gists_url":"https://api.github.com/users/cpojer/gists{/gist_id}","starred_url":"https://api.github.com/users/cpojer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpojer/subscriptions","organizations_url":"https://api.github.com/users/cpojer/orgs","repos_url":"https://api.github.com/users/cpojer/repos","events_url":"https://api.github.com/users/cpojer/events{/privacy}","received_events_url":"https://api.github.com/users/cpojer/received_events","type":"User","site_admin":false},"labels":[{"id":549288633,"url":"https://api.github.com/repos/facebook/jest/labels/Feature%20Request","name":"Feature Request","color":"bfdadc","default":false},{"id":376066135,"url":"https://api.github.com/repos/facebook/jest/labels/Good%20First%20Issue%20:wave:","name":"Good First Issue :wave:","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":{"login":"jeanlauliac","id":1733570,"avatar_url":"https://avatars3.githubusercontent.com/u/1733570?v=4","gravatar_id":"","url":"https://api.github.com/users/jeanlauliac","html_url":"https://github.com/jeanlauliac","followers_url":"https://api.github.com/users/jeanlauliac/followers","following_url":"https://api.github.com/users/jeanlauliac/following{/other_user}","gists_url":"https://api.github.com/users/jeanlauliac/gists{/gist_id}","starred_url":"https://api.github.com/users/jeanlauliac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeanlauliac/subscriptions","organizations_url":"https://api.github.com/users/jeanlauliac/orgs","repos_url":"https://api.github.com/users/jeanlauliac/repos","events_url":"https://api.github.com/users/jeanlauliac/events{/privacy}","received_events_url":"https://api.github.com/users/jeanlauliac/received_events","type":"User","site_admin":false},"assignees":[{"login":"jeanlauliac","id":1733570,"avatar_url":"https://avatars3.githubusercontent.com/u/1733570?v=4","gravatar_id":"","url":"https://api.github.com/users/jeanlauliac","html_url":"https://github.com/jeanlauliac","followers_url":"https://api.github.com/users/jeanlauliac/followers","following_url":"https://api.github.com/users/jeanlauliac/following{/other_user}","gists_url":"https://api.github.com/users/jeanlauliac/gists{/gist_id}","starred_url":"https://api.github.com/users/jeanlauliac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeanlauliac/subscriptions","organizations_url":"https://api.github.com/users/jeanlauliac/orgs","repos_url":"https://api.github.com/users/jeanlauliac/repos","events_url":"https://api.github.com/users/jeanlauliac/events{/privacy}","received_events_url":"https://api.github.com/users/jeanlauliac/received_events","type":"User","site_admin":false}],"milestone":null,"comments":16,"created_at":"2017-03-16T03:58:37Z","updated_at":"2018-04-03T09:16:52Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"@jeanlauliac mentioned it would be great if Jest could come with a kick-ass fs mock out of the box.\r\n\r\n* This would work well for integration tests.\r\n* We can potentially provide the same for other data sources (http, sockets etc.)\r\n\r\nGoal:\r\n* Ships as part of Jest, no configuration.\r\n* Easy way to enable it (Similar to `jest.mock('fs')`?)."},"comment":{"url":"https://api.github.com/repos/facebook/jest/issues/comments/378184281","html_url":"https://github.com/facebook/jest/issues/3154#issuecomment-378184281","issue_url":"https://api.github.com/repos/facebook/jest/issues/3154","id":378184281,"user":{"login":"jeanlauliac","id":1733570,"avatar_url":"https://avatars3.githubusercontent.com/u/1733570?v=4","gravatar_id":"","url":"https://api.github.com/users/jeanlauliac","html_url":"https://github.com/jeanlauliac","followers_url":"https://api.github.com/users/jeanlauliac/followers","following_url":"https://api.github.com/users/jeanlauliac/following{/other_user}","gists_url":"https://api.github.com/users/jeanlauliac/gists{/gist_id}","starred_url":"https://api.github.com/users/jeanlauliac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeanlauliac/subscriptions","organizations_url":"https://api.github.com/users/jeanlauliac/orgs","repos_url":"https://api.github.com/users/jeanlauliac/repos","events_url":"https://api.github.com/users/jeanlauliac/events{/privacy}","received_events_url":"https://api.github.com/users/jeanlauliac/received_events","type":"User","site_admin":false},"created_at":"2018-04-03T09:16:52Z","updated_at":"2018-04-03T09:16:52Z","author_association":"CONTRIBUTOR","body":"We use [`metro-memory-fs`](https://github.com/facebook/metro/tree/master/packages/metro-memory-fs) at the moment for Metro's automated tests, that has proper path resolutions and a few of the core functions we needed. It lacks docs, but it's essentially the same API as `fs`. It can be used as as such:\r\n\r\n```js\r\njest.mock('fs', () => new (require('metro-memory-fs'))());\r\n```"}}
{"actor":{"display_login":"jeanlauliac"}}