Lesson 38 of 56
TypescriptTesting with Jest & `ts-jest`
20 minutes
Course progress68%
Install Jest for TypeScript
npm i -D jest ts-jest @types/jest
npx ts-jest config:init
Updates jest.config.js to use ts-jest transformer.
Simple test
// sum.ts
export const sum = (a: , : ) => a + b;