{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/mongoose/issues/1251","labels_url":"https://api.github.com/repos/Automattic/mongoose/issues/1251/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/mongoose/issues/1251/comments","events_url":"https://api.github.com/repos/Automattic/mongoose/issues/1251/events","html_url":"https://github.com/Automattic/mongoose/issues/1251","id":9295848,"number":1251,"title":"OverwriteModelError with mocha 'watch'","user":{"login":"floatingLomas","id":638496,"avatar_url":"https://avatars.githubusercontent.com/u/638496?v=3","gravatar_id":"","url":"https://api.github.com/users/floatingLomas","html_url":"https://github.com/floatingLomas","followers_url":"https://api.github.com/users/floatingLomas/followers","following_url":"https://api.github.com/users/floatingLomas/following{/other_user}","gists_url":"https://api.github.com/users/floatingLomas/gists{/gist_id}","starred_url":"https://api.github.com/users/floatingLomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/floatingLomas/subscriptions","organizations_url":"https://api.github.com/users/floatingLomas/orgs","repos_url":"https://api.github.com/users/floatingLomas/repos","events_url":"https://api.github.com/users/floatingLomas/events{/privacy}","received_events_url":"https://api.github.com/users/floatingLomas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":36,"created_at":"2012-12-14T20:02:15Z","updated_at":"2015-04-26T02:56:34Z","closed_at":"2012-12-14T20:38:48Z","body":"I just updated from 3.4.0 to 3.5.1, and when 'watching' Mocha tests on a model, every time the file reloads, I get a OverwriteModelError from re-'require'ing - and I guess, redefining - the model.\r\n\r\nThere must be some value in making an 'overwrite' an error, but I'm going back to 3.4.0 for now because this is too much of a pain."},"comment":{"url":"https://api.github.com/repos/Automattic/mongoose/issues/comments/96313444","html_url":"https://github.com/Automattic/mongoose/issues/1251#issuecomment-96313444","issue_url":"https://api.github.com/repos/Automattic/mongoose/issues/1251","id":96313444,"user":{"login":"joaom182","id":3612098,"avatar_url":"https://avatars.githubusercontent.com/u/3612098?v=3","gravatar_id":"","url":"https://api.github.com/users/joaom182","html_url":"https://github.com/joaom182","followers_url":"https://api.github.com/users/joaom182/followers","following_url":"https://api.github.com/users/joaom182/following{/other_user}","gists_url":"https://api.github.com/users/joaom182/gists{/gist_id}","starred_url":"https://api.github.com/users/joaom182/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joaom182/subscriptions","organizations_url":"https://api.github.com/users/joaom182/orgs","repos_url":"https://api.github.com/users/joaom182/repos","events_url":"https://api.github.com/users/joaom182/events{/privacy}","received_events_url":"https://api.github.com/users/joaom182/received_events","type":"User","site_admin":false},"created_at":"2015-04-26T02:56:34Z","updated_at":"2015-04-26T02:56:34Z","body":":+1: "}}