{"action":"closed","issue":{"url":"https://api.github.com/repos/mochajs/mocha/issues/273","labels_url":"https://api.github.com/repos/mochajs/mocha/issues/273/labels{/name}","comments_url":"https://api.github.com/repos/mochajs/mocha/issues/273/comments","events_url":"https://api.github.com/repos/mochajs/mocha/issues/273/events","html_url":"https://github.com/mochajs/mocha/issues/273","id":3290937,"number":273,"title":"tty.getWindowSize() throwing Error: ENODEV, Operation not supported by device","user":{"login":"leisms","id":735438,"avatar_url":"https://avatars.githubusercontent.com/u/735438?v=3","gravatar_id":"","url":"https://api.github.com/users/leisms","html_url":"https://github.com/leisms","followers_url":"https://api.github.com/users/leisms/followers","following_url":"https://api.github.com/users/leisms/following{/other_user}","gists_url":"https://api.github.com/users/leisms/gists{/gist_id}","starred_url":"https://api.github.com/users/leisms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leisms/subscriptions","organizations_url":"https://api.github.com/users/leisms/orgs","repos_url":"https://api.github.com/users/leisms/repos","events_url":"https://api.github.com/users/leisms/events{/privacy}","received_events_url":"https://api.github.com/users/leisms/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2012-02-20T07:13:49Z","updated_at":"2015-06-07T01:14:42Z","closed_at":"2015-06-07T01:14:42Z","body":"I'm trying to run Mocha through a git pre-commit, spawned by make.\r\n\r\nRunning the pre-commit script manually works, but when I try to make a commit, and git runs the pre-commit I get the following error:\r\n\r\n```javascript\r\nnode.js:134\r\n        throw e; // process.nextTick error, or 'error' event on first tick\r\n        ^\r\nError: ENODEV, Operation not supported by device\r\n    at Object.<anonymous> (...node_modules/mocha/lib/reporters/base.js:75:13)\r\n    at Module._compile (module.js:404:26)\r\n    at Object..js (module.js:410:10)\r\n    at Module.load (module.js:336:31)\r\n    at Function._load (module.js:297:12)\r\n    at require (module.js:348:19)\r\n    at Object.<anonymous> (...node_modules/mocha/lib/reporters/index.js:2:16)\r\n    at Module._compile (module.js:404:26)\r\n    at Object..js (module.js:410:10)\r\n    at Module.load (module.js:336:31)\r\nmake: *** [test] Error 1\r\n```\r\nI need to set the width manually on line 71 of mocha/lib/reporters/base.js in order for the pre-commit to run:\r\n\r\n```javascript\r\nexports.window = {\r\n  width: 75\r\n};\r\n```"}}