Date: Tue, 10 Dec 2019 11:00:00 +0000
<div class="trix-content"> <div><strong>Daniel Caldas is calling from Singapore. He currently works as a software engineer for Zendesk and has also worked in Portugal and Germany. He has worked primarily on the frontend with Node and JavaScript. He talks about his experience testing JavaScript, how he got started with Jest, and why he likes it. Daniel finds Jest very easy to use and straightforward. He likes that Jest has a single reference page for documentation. He feels that Jest is largely complete out of the box and has only made a small add on to get rid of Boilerplate in some tests.</strong></div><div><strong>Daniel explains what a snapshot, how they work, and why he prefers fixtures over factories. He gives tips on how to set up your tests so that they are easy to follow. He finds it helps to structure your scenarios in the fixture description. He talks about gotchas in Jest. While Jest is largely easy to use, Jest has been around for a while and breaking changes do happen. It’s important to check what version your code base is using. While there are a lot of free sources around Jest online, he advises listeners to stick as close to the official documentation as possible, or to people associated with Jest, and to read recent stuff. As for conventions, Jest has pretty much everything out of the box and the built in conventions make it easy to navigate any project that uses Jest.</strong></div><div><strong>Daniel talks about some of the features available in Jest, converting observables into promises, and tricks he has used to make tests easier to put together. He talks about his method for keeping his mocks and stubs straight. He advises listeners to have some organizational rules, such as starting the imports alphabetically, and to always follow those rules. He talks about how he runs tests and what environments he uses. While Jest is normally used for unit testing, Daniel has also used it for end to end tests, and he talks about his experience with an open source project doing both types in Jest. Daniel concludes the show by advising listeners starting with JavaScript and frontend, don’t think too much about the library you’re going to use because you’ll probably end up using Jest. It’s more important to have unit tests and a proper testing framework at the beginning than anything else. He also invites listeners to check out his open source work on Github.</strong></div><div><strong>Panelists</strong></div><ul> <li><strong>Aimee Knight</strong></li> <li><strong>AJ O’Neal</strong></li> <li><strong>Charles Max Wood</strong></li> </ul><div> </div><div>**To receive your 40% OFF coupon for <a href="https://www.manning.com">Manning Publications</a> (good for all our products in all formats) visit us on <a href="https://www.facebook.com/javascriptjabber">Facebook</a> - click on "Send A Message"and type "YES"**</div><div><strong>Guest</strong></div><ul><li><strong>Danile Caldas</strong></li></ul><div><strong>Sponsors</strong></div><ul><li> <a href="http://sentry.io/"><strong>Sentry</strong></a><strong> | Use the code “devchat” for $100 credit</strong> </li></ul><div><strong>Links</strong></div><ul> <li><a href="https://www.zendesk.com/"><strong>Zendesk</strong></a></li> <li><a href="https://jestjs.io/"><strong>Jest</strong></a></li> <li><a href="https://reactjs.org/"><strong>React</strong></a></li> <li><a href="https://babeljs.io/"><strong>Babel</strong></a></li> <li><a href="https://eslint.org/"><strong>ESLint</strong></a></li> <li><a href="https://javascript.info/async-await"><strong>Async/Await</strong></a></li> <li><a href="https://www.cypress.io/"><strong>Cypress</strong></a></li> <li><a href="https://github.com/danielcaldas/react-d3-graph"><strong>React-d3-graph</strong></a></li> <li><a href="https://goodguydaniel.com/blog/tips-jest-unit-testing/"><strong>Unrevealed tips for unit testing with Jest</strong></a></li> </ul><div><strong>Picks</strong></div><div><strong... Support this podcast at — https://redcircle.com/javascript-jabber/donations Advertising Inquiries: https://redcircle.com/brands Privacy & Opt-Out: https://redcircle.com/privacy