{"action":"created","issue":{"url":"https://api.github.com/repos/mochajs/mocha/issues/2612","repository_url":"https://api.github.com/repos/mochajs/mocha","labels_url":"https://api.github.com/repos/mochajs/mocha/issues/2612/labels{/name}","comments_url":"https://api.github.com/repos/mochajs/mocha/issues/2612/comments","events_url":"https://api.github.com/repos/mochajs/mocha/issues/2612/events","html_url":"https://github.com/mochajs/mocha/issues/2612","id":192864635,"number":2612,"title":"before block gets called after test suites","user":{"login":"SergeyKhval","id":16866432,"avatar_url":"https://avatars.githubusercontent.com/u/16866432?v=3","gravatar_id":"","url":"https://api.github.com/users/SergeyKhval","html_url":"https://github.com/SergeyKhval","followers_url":"https://api.github.com/users/SergeyKhval/followers","following_url":"https://api.github.com/users/SergeyKhval/following{/other_user}","gists_url":"https://api.github.com/users/SergeyKhval/gists{/gist_id}","starred_url":"https://api.github.com/users/SergeyKhval/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergeyKhval/subscriptions","organizations_url":"https://api.github.com/users/SergeyKhval/orgs","repos_url":"https://api.github.com/users/SergeyKhval/repos","events_url":"https://api.github.com/users/SergeyKhval/events{/privacy}","received_events_url":"https://api.github.com/users/SergeyKhval/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-01T14:42:17Z","updated_at":"2016-12-01T17:45:43Z","closed_at":null,"body":"If I run the following code, string 'before block' is logged to console only after both 'test suite 1' and 'test suite 2'. `beforeEach`, `after` and `afterEach` all work as intended\r\n\r\n```javascript\r\ndescribe('before', () => {\r\n  before(() => {\r\n    console.log('before block\\n');\r\n  });\r\n\r\n  it('should log after before block', () => {\r\n    console.log('test suite 1\\n');\r\n  });\r\n\r\n  it('should log after before block', () => {\r\n    console.log('test suite 2\\n');\r\n  });\r\n}\r\n```\r\n\r\nMocha version 3.2.0"},"comment":{"url":"https://api.github.com/repos/mochajs/mocha/issues/comments/264242129","html_url":"https://github.com/mochajs/mocha/issues/2612#issuecomment-264242129","issue_url":"https://api.github.com/repos/mochajs/mocha/issues/2612","id":264242129,"user":{"login":"boneskull","id":924465,"avatar_url":"https://avatars.githubusercontent.com/u/924465?v=3","gravatar_id":"","url":"https://api.github.com/users/boneskull","html_url":"https://github.com/boneskull","followers_url":"https://api.github.com/users/boneskull/followers","following_url":"https://api.github.com/users/boneskull/following{/other_user}","gists_url":"https://api.github.com/users/boneskull/gists{/gist_id}","starred_url":"https://api.github.com/users/boneskull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boneskull/subscriptions","organizations_url":"https://api.github.com/users/boneskull/orgs","repos_url":"https://api.github.com/users/boneskull/repos","events_url":"https://api.github.com/users/boneskull/events{/privacy}","received_events_url":"https://api.github.com/users/boneskull/received_events","type":"User","site_admin":false},"created_at":"2016-12-01T17:45:43Z","updated_at":"2016-12-01T17:45:43Z","body":"can't reproduce; unlikely a Mocha problem anyway.  will need more info about environment.  please include your actual test"}}
{"actor":{"display_login":"boneskull"}}