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

Jest Do It

Jest Do It

The deck used for webcast on https://youtu.be/bfdjXfXs01w

Malcolm Kee

May 09, 2020
Tweet

More Decks by Malcolm Kee

Other Decks in Technology

Transcript

  1. Outlines - how test runner and assertion works - how

    to assert dynamic behavior using Mock function - how to test asynchronous code - how to mock API calls or non-deterministic code - how to use snapshot testing effectively
  2. Outlines - how test runner and assertion works - how

    to assert dynamic behavior using Mock function - how to test asynchronous code - how to mock API calls or non-deterministic code - how to use snapshot testing effectively
  3. A test throws Error when our code does not behave

    as expected. 1. running our code under certain conditions 2. verify the code behaves as expected. If not, throws Error.
  4. Outlines - how test runner and assertion works - how

    to assert dynamic behavior using Mock function - how to test asynchronous code - how to mock API calls or non-deterministic code - how to use snapshot testing effectively
  5. Outlines - how test runner and assertion works - how

    to assert dynamic behavior using Mock function - how to test asynchronous code - how to mock API calls or non-deterministic code - how to use snapshot testing effectively
  6. Outlines - how test runner and assertion works - how

    to assert dynamic behavior using Mock function - how to test asynchronous code - how to mock API calls or non-deterministic code - how to use snapshot testing effectively
  7. Outlines - how test runner and assertion works - how

    to assert dynamic behavior using Mock function - how to test asynchronous code - how to mock API calls or non-deterministic code - how to use snapshot testing effectively