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

Project Configuration for TS Testing

Arrange the steps for configuring TypeScript tests with Jest:

Items to put in order

  • Set preset: 'ts-jest' in jest.config.js
  • Write tests in .test.ts files
  • Install ts-jest and @types/jest
  • Run npx jest

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