Skip to content
Episode 11: Test Driven Development (feat. Sarah Dayan) episode artwork

Apr 6, 2020 1 hr 8 min

Episode 11: Test Driven Development (feat. Sarah Dayan)

from Enjoy the Vue Hosted by The Enjoy the Vue Team

Sponsored By: Show Notes [00:02:37] Sarah was on the docket to speak at VueConfUS. Since it got cancelled, she shares those of us Stateside all about testing in Vue and why TDD is great. [00:05:25] Ari asks Sarah about what a contract in a component and what it means. Sarah breaks this down with a very simple example, a button. [00:09:50] Ben gets Sarah’s thoughts on end to end testing. She makes a case for Test Driven Development applying to more than just unit tests. [00:15:51] Tessa who saw one of Sarah’s presentations on TDD, asks her about her “tip” on when to test and when not to test. Sarah puts it simply, the question to ask is: “Do I care about it if it changes?”. [00:21:40] Sarah give us some good practices that you may want to implement when testing. Whether you are doing unit or end to end testing. [00:24:51] After Tessa asks Sarah about Snapshot Tests and whether a link text fits in a Unit Test. Sarah believes Snapshot Tests are better when you want to test logs or code. She feels they should not be used in place of Unit Tests, since they cannot test behaviour. [00:28:33] Ben talks about how some Dev’s have an obsession with getting 100’s on Code Coverage Reports. Sarah goes into how not to get caught up in the “vanity metrics”. The group joke around how it that obsession may originate from gaming and how we have to collect every coin and badge. [00:34:23] Tessa enquires about testing for accessibility. [00:39:34] Ari gives an example of working at a fast paced start-up, and whether or not TDD can reconcile when you don’t have clear cut requirements. Is it even possible? Sarah shows how it can save money since everything won’t need to be retested by hand. About our guest: Sarah Dyan Twitter @frontstuff_io Website Sarah's picks XState (state machines/statecharts library) Vuex ORM (object-relational mapping access to the Vuex store) The 100 on Netflix Master of None on Netflix Tessa's picks The Good Place - NBC/Netflix Anne with an E - Netflix Dispatches from Elsewhere - AMC We Should Get Together (Kat Vellos) - Book (DRM-free via her website and her preferred method to purchase iirc https://weshouldgettogether.com/products/epub-we-should-get-together-the-secret-to-cultivating-better-friendships) Animal Crossing - Switch Vue DC remote meetup Other resources mentioned Pro Plan Algolia - Help Coronavirus Testing Library by Kent C Dodds Dinero.js - Sarah Dayan Sponsor: Linode Special Guest: Sarah Dayan.

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

Episode 11: Test Driven Development (feat. Sarah Dayan)

0:00 1:08:21

No transcript yet.

Requests help us decide what to transcribe next.

Frequently asked questions

How long is this episode of Enjoy the Vue?

This episode is 1 hour and 8 minutes long.

When was this Enjoy the Vue episode published?

This episode was published on April 6, 2020.

Can I download this Enjoy the Vue episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.