-
Install TS as a dev dependency npm install typescript -D
-
Initialize your tsconfig
tsc --init
-
Define your rootDir (generally "./src") and outDir (generally "./dist" or "./build")
-
Installing the testing framework
npm install jest ts-jest @types/jest supertest
- Configuring for TS
npx ts-jest config:init
- Good to go! You can now do some TDD with TS.