# test **Repository Path**: zerbg/test ## Basic Information - **Project Name**: test - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-01-05 - **Last Updated**: 2024-01-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README https://dev.to/nathan_sheryak/how-to-test-a-typescript-express-api-with-jest-for-dummies-like-me-4epd Initialize project and import the imports Create a directory for your project and cd into it. Use NPM to initialize the project npm init -y. Import dependencies npm i express. Import dev-dependencies npm i --save-dev typescript supertest nodemon jest ts-jest ts-node @types/node @types/jest @types/supertest. Initialize TypeScript Now let's add TypeScript to our project. npx tsc --init The above command will generate a tsconfig.json file. Initialize Jest Up next, we want to add the Jest testing framework to our project. npx ts-jest config:init The above command will generate a jest.config.js file. You'll want to modify it with the below, so it works with ts-jest (this is what makes jest work with TypeScript).