Configuring Jest With TypeScript

Jesse Langford
4 min readJun 20, 2023
Photo by Christopher Gower on Unsplash

This article assumes you already know how to configure a project with a package manager like npm or yarn. It also assumes you know how to install and init TypeScript in a project.

Getting Started

For this example, I’m going to start with the below folder structure:

/src
-- /multiply
-- multiply.ts
index.ts
package.json
tsconfig.json

--

--