This course is designed for intermediate JavaScript programmers who want to learn how to write automated tests using the Jest library. We will teach you not only how to design and implement tests, but also how to think economically and [...]
  • JS_TEST_JEST
  • Duration 3 days
  • 30 ITK points
  • 0 terms
  • Praha (23 100 Kč)

    Brno (23 100 Kč)

    Bratislava (990 €)

  • Intermediate

This course is designed for intermediate JavaScript programmers who want to learn how to write automated tests using the Jest library. We will teach you not only how to design and implement tests, but also how to think economically and rationally about your testing efforts. To successfully complete the course, you need to know both functional and OOP approaches to JavaScript and a basic understanding of how to work with Promises at the [JS_PROG2] course level.

»

This course is designed for intermediate JavaScript programmers who want to learn how to write automated tests using the Jest library.

  • Define and categorize tests
  • Design and implement automated tests
  • Test functions and classes
  • Test asynchronous code
  • Apply testing strategies to different situations
  • JavaScript programming at the course level [JS_PROG2]

Introduction

  • Testing and Automation
  • Test Categorization
  • Test Anatomy
  • Is Basic tests
  • Test Registration
  • Assertion (matchers)
  • expect() function
  • the truth of the expression
  • numbers
  • text strings
  • arrays and objects
  • exceptions Asynchronous code
  • Promise
  • async / await
  • callback
  • resolves() and rejects() matcher Initialization and cleanup
  • One-time
  • Repeatedly
  • Order of execution Mocking
  • Mock-up function
  • Mocking timers and async functions
  • module mocking
  • partial object mocking
  • mock assertion Snapshots
Current offer
Training location
Course language

The prices are without VAT.