{"action":"created","issue":{"url":"https://api.github.com/repos/Steve-Fenton/tsUnit/issues/30","repository_url":"https://api.github.com/repos/Steve-Fenton/tsUnit","labels_url":"https://api.github.com/repos/Steve-Fenton/tsUnit/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/Steve-Fenton/tsUnit/issues/30/comments","events_url":"https://api.github.com/repos/Steve-Fenton/tsUnit/issues/30/events","html_url":"https://github.com/Steve-Fenton/tsUnit/issues/30","id":221164814,"number":30,"title":"failing async tests throw error - testing stops and no results are shown","user":{"login":"flyon","id":341567,"avatar_url":"https://avatars3.githubusercontent.com/u/341567?v=3","gravatar_id":"","url":"https://api.github.com/users/flyon","html_url":"https://github.com/flyon","followers_url":"https://api.github.com/users/flyon/followers","following_url":"https://api.github.com/users/flyon/following{/other_user}","gists_url":"https://api.github.com/users/flyon/gists{/gist_id}","starred_url":"https://api.github.com/users/flyon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flyon/subscriptions","organizations_url":"https://api.github.com/users/flyon/orgs","repos_url":"https://api.github.com/users/flyon/repos","events_url":"https://api.github.com/users/flyon/events{/privacy}","received_events_url":"https://api.github.com/users/flyon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-04-12T06:35:54Z","updated_at":"2017-06-26T18:02:43Z","closed_at":null,"body":"When running async tests and one test fails, testing stops, and results are not shown.\r\nA simplified version of my setup:\r\n\r\n    export default class AsyncTest extends tsUnit.TestClass\r\n    {\r\n        testAsync()\r\n        {\r\n        \treturn new Promise((resolve,reject) => {\r\n        \t\tthis.isTrue(false);\r\n        \t});\r\n        }\r\n    }\r\n---\r\n    tsUnit.ts:499 Uncaught (in promise) Error: isTrue failed when given {boolean} \"false\"\r\n        at AsyncTest.getError (tsUnit.ts:499)\r\n        at AsyncTest.isTrue (tsUnit.ts:404)\r\n        at AsyncTest.testAsync (AsyncTest.ts:15)\r\n        at Promise.resolve.then (tsUnitAsync.ts:119)\r\n\r\nthis.setState is never called:\r\n\r\n    var testAsync = new TestAsync({AsyncTest});\r\n    testAsync.runAsync().then(resultAsync => {\r\n        this.setState({resultAsync:resultAsync});\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Steve-Fenton/tsUnit/issues/comments/311135798","html_url":"https://github.com/Steve-Fenton/tsUnit/issues/30#issuecomment-311135798","issue_url":"https://api.github.com/repos/Steve-Fenton/tsUnit/issues/30","id":311135798,"user":{"login":"hn3000","id":133752,"avatar_url":"https://avatars1.githubusercontent.com/u/133752?v=3","gravatar_id":"","url":"https://api.github.com/users/hn3000","html_url":"https://github.com/hn3000","followers_url":"https://api.github.com/users/hn3000/followers","following_url":"https://api.github.com/users/hn3000/following{/other_user}","gists_url":"https://api.github.com/users/hn3000/gists{/gist_id}","starred_url":"https://api.github.com/users/hn3000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hn3000/subscriptions","organizations_url":"https://api.github.com/users/hn3000/orgs","repos_url":"https://api.github.com/users/hn3000/repos","events_url":"https://api.github.com/users/hn3000/events{/privacy}","received_events_url":"https://api.github.com/users/hn3000/received_events","type":"User","site_admin":false},"created_at":"2017-06-26T18:02:43Z","updated_at":"2017-06-26T18:02:43Z","body":"You're not showing how you import that AsyncTest, but the \"export default\" looks suspicious to me. I tried to reproduce your test case and I get an exception thrown in the constructor of TestAsync ..."}}
{"actor":{"display_login":"hn3000"}}