Upgrade to Pro — share decks privately, control downloads, hide ads and more …

JS Software testing for beginners

JS Software testing for beginners

Lucas Santos

December 05, 2022

More Decks by Lucas Santos

Other Decks in Programming


  1. why automated testing? ➔ Improves software quality ➔ Prevent errors

    before they're published ➔ Builds trust in the codebase ◆ Changes can be published faster
  2. Types of doubles ➔ Spies ◆ Adds instrumentation to a

    function/object ◆ Actually calls the function but gathers metadata ➔ Stubs ◆ Replaces a function for a fake implementation ◆ Adds instrumentation ◆ Returns a fixed value ➔ Mocks ◆ "Smarter" stubs ◆ Have predefined expectations on interactions ◆ Focused on the interaction, not on behaviour