{"action":"created","issue":{"url":"https://api.github.com/repos/svg/svgo/issues/574","repository_url":"https://api.github.com/repos/svg/svgo","labels_url":"https://api.github.com/repos/svg/svgo/issues/574/labels{/name}","comments_url":"https://api.github.com/repos/svg/svgo/issues/574/comments","events_url":"https://api.github.com/repos/svg/svgo/issues/574/events","html_url":"https://github.com/svg/svgo/issues/574","id":171380186,"number":574,"title":"doesn't work with mock-fs","user":{"login":"awinogradov","id":982072,"avatar_url":"https://avatars.githubusercontent.com/u/982072?v=3","gravatar_id":"","url":"https://api.github.com/users/awinogradov","html_url":"https://github.com/awinogradov","followers_url":"https://api.github.com/users/awinogradov/followers","following_url":"https://api.github.com/users/awinogradov/following{/other_user}","gists_url":"https://api.github.com/users/awinogradov/gists{/gist_id}","starred_url":"https://api.github.com/users/awinogradov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awinogradov/subscriptions","organizations_url":"https://api.github.com/users/awinogradov/orgs","repos_url":"https://api.github.com/users/awinogradov/repos","events_url":"https://api.github.com/users/awinogradov/events{/privacy}","received_events_url":"https://api.github.com/users/awinogradov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-16T10:55:13Z","updated_at":"2016-08-20T17:39:36Z","closed_at":null,"body":"If you try to use SVGO as nodejs module in tests, where you have mock-fs for any targets you will see this error:\r\n\r\n```\r\nENOENT, no such file or directory '/Users/username/Sources/project/node_modules/svgo/lib/svgo/../../.svgo.yml'\r\n at Binding.<anonymous> (/Users/username/Sources/project/node_modules/mock-fs/lib/binding.js:353:15)\r\n at maybeCallback (/Users/username/Sources/project/node_modules/mock-fs/lib/binding.js:43:17)\r\n at Binding.open (/Users/username/Sources/project/node_modules/mock-fs/lib/binding.js:327:10)\r\n at Object.fs.openSync (/Users/username/Sources/project/node_modules/mock-fs/node/fs-6.3.0.js:598:18)\r\n at Object.fs.readFileSync (/Users/username/Sources/project/node_modules/mock-fs/node/fs-6.3.0.js:466:33)\r\n at Object.readFileSync (/Users/username/Sources/project/node_modules/mock-fs/lib/index.js:59:31)\r\n at module.exports (/Users/username/Sources/project/node_modules/svgo/lib/svgo/config.js:31:48)\r\n at new module.exports (/Users/username/Sources/project/node_modules/svgo/lib/svgo.js:21:19)\r\n at Object.exports.html (/Users/username/Sources/project/src/lib/compilers/index.js:45:16)\r\n at Promise.resolve.then.screen (/Users/username/Sources/project/src/submodule/screen/actions/index.js:43:37)\r\n at process._tickCallback (internal/process/next_tick.js:103:7)\r\n```\r\n\r\nnode `v6.2.1`\r\nnpm `3.9.3`\r\nsvgo `0.6.6`"},"comment":{"url":"https://api.github.com/repos/svg/svgo/issues/comments/241213413","html_url":"https://github.com/svg/svgo/issues/574#issuecomment-241213413","issue_url":"https://api.github.com/repos/svg/svgo/issues/574","id":241213413,"user":{"login":"awinogradov","id":982072,"avatar_url":"https://avatars.githubusercontent.com/u/982072?v=3","gravatar_id":"","url":"https://api.github.com/users/awinogradov","html_url":"https://github.com/awinogradov","followers_url":"https://api.github.com/users/awinogradov/followers","following_url":"https://api.github.com/users/awinogradov/following{/other_user}","gists_url":"https://api.github.com/users/awinogradov/gists{/gist_id}","starred_url":"https://api.github.com/users/awinogradov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awinogradov/subscriptions","organizations_url":"https://api.github.com/users/awinogradov/orgs","repos_url":"https://api.github.com/users/awinogradov/repos","events_url":"https://api.github.com/users/awinogradov/events{/privacy}","received_events_url":"https://api.github.com/users/awinogradov/received_events","type":"User","site_admin":false},"created_at":"2016-08-20T17:39:36Z","updated_at":"2016-08-20T17:39:36Z","body":"yep"}}
{"actor":{"display_login":"awinogradov"}}