{"action":"opened","issue":{"url":"https://api.github.com/repos/HannoverJS/talks/issues/65","repository_url":"https://api.github.com/repos/HannoverJS/talks","labels_url":"https://api.github.com/repos/HannoverJS/talks/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/HannoverJS/talks/issues/65/comments","events_url":"https://api.github.com/repos/HannoverJS/talks/issues/65/events","html_url":"https://github.com/HannoverJS/talks/issues/65","id":317606282,"number":65,"title":"Unit Testing (with Ava & Jest)","user":{"login":"timche","id":8075074,"avatar_url":"https://avatars3.githubusercontent.com/u/8075074?v=4","gravatar_id":"","url":"https://api.github.com/users/timche","html_url":"https://github.com/timche","followers_url":"https://api.github.com/users/timche/followers","following_url":"https://api.github.com/users/timche/following{/other_user}","gists_url":"https://api.github.com/users/timche/gists{/gist_id}","starred_url":"https://api.github.com/users/timche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timche/subscriptions","organizations_url":"https://api.github.com/users/timche/orgs","repos_url":"https://api.github.com/users/timche/repos","events_url":"https://api.github.com/users/timche/events{/privacy}","received_events_url":"https://api.github.com/users/timche/received_events","type":"User","site_admin":false},"labels":[{"id":383137868,"url":"https://api.github.com/repos/HannoverJS/talks/labels/Beginner","name":"Beginner","color":"c2e0c6","default":false},{"id":383913862,"url":"https://api.github.com/repos/HannoverJS/talks/labels/Framework","name":"Framework","color":"d4c5f9","default":false},{"id":384261465,"url":"https://api.github.com/repos/HannoverJS/talks/labels/Upcoming%20Talk","name":"Upcoming Talk","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-25T12:28:11Z","updated_at":"2018-04-25T12:28:11Z","closed_at":null,"author_association":"OWNER","body":"##### Tim Cheung\r\n###### Software Engineer at NewStore\r\n###### [@timche_](https://twitter.com/timche_)\r\n\r\nWriting code requires validation to see whether it's working or not. A classic way for functions is to just console.log the return value in the terminal for Node.js applications or the browser console for websites. Some might even don't check them at all, which is in some way okayish. But as soon as the application scales, functions do complex stuff or use other functions and we change something, it's useful to actually write unit tests, so we don't have to test our code manually. Writing unit tests makes sure that code doesn't break and if so, we know what's failing before shipping it to production.\r\n\r\nIn this talk I'll give a brief introduction into unit testing with some of the popular tools existing in the JavaScript ecosystem, Ava & Jest, and how you can set them up and use them."}}
{"actor":{"display_login":"timche"}}