# Jest intro

How to setup Jest in a TypeScript project.

## Preparations

Please do the TypeScript intro first.

## Install Jest

- `npm install jest @types/jest ts-jest`

## Setup Jest

- `npx ts-jest config:init`

## Verify that it works

- Create a file `index.test.ts`.
- Write a `test('It works!', () => {expect(1).toEqual(0);});` statement inside the file.
- `npx jest`
- The test should fail.