Put in order · JavaScript and TypeScript course · Module 11: Testing with Jest

Red-Green-Refactor Cycle Steps

Arrange the steps of one TDD iteration in the correct order:

Items to put in order

  • GREEN: Write the minimum code to make the test pass
  • REFACTOR: Improve the code while keeping tests green
  • RED: Write a test that fails

You can check the correct answer by solving this task in the CodeWorlds game.