I figured out that the config file is JSON.
Copy{
"testPathDirs": ["coredata/src"]
}
Unfortunately I found nowhere in the documentation a hint about this.
Answer from Carles Barrobés on Stack OverflowJest
jestjs.io › configuring jest
Configuring Jest · Jest
May 8, 2026 - To read TypeScript configuration files Jest by default requires ts-node. You can override this behavior by adding a @jest-config-loader docblock at the top of the file. Currently, ts-node and esbuild-register is supported.
Top answer 1 of 6
44
I figured out that the config file is JSON.
Copy{
"testPathDirs": ["coredata/src"]
}
Unfortunately I found nowhere in the documentation a hint about this.
2 of 6
17
Seems to me you can configure jest directly within your package.json, see https://github.com/shidhincr/react-jest-gulp-jspm-seed/blob/master/package.json.
Copy{
"name": "react-jest-gulp-seed",
"version": "1.0.0",
"description": "Seed for React Jest Gulp Project",
"main": "index.js",
"scripts": {
"test": "jest",
"postinstall": "jspm install"
},
"jest": {
"scriptPreprocessor": "./preprocessor.js",
"testPathIgnorePatterns": [
"/node_modules/",
"/jspm_packages"
],
"unmockedModulePathPatterns": [
"./node_modules/react"
]
},
"author": "Shidhin CR <shidhincr@gmail.com> (http://www.undefinednull.com/)",
"license": "ISC",
"dependencies": {
"del": "^1.1.1",
"gulp": "^3.8.11",
"gulp-filter": "^2.0.2",
"gulp-load-plugins": "^0.10.0",
"gulp-react": "^3.0.1",
"gulp-shell": "^0.4.1",
"harmonize": "^1.4.1",
"jest-cli": "^0.4.1",
"jspm": "^0.15.5",
"react": "^0.13.2",
"react-tools": "^0.13.2",
"run-sequence": "^1.1.0"
},
"devDependencies": {
"browser-sync": "^2.7.1",
"gulp": "^3.8.11"
},
"jspm": {
"directories": {},
"dependencies": {
"react": "npm:react@^0.13.2"
},
"devDependencies": {
"babel": "npm:babel-core@^5.1.13",
"babel-runtime": "npm:babel-runtime@^5.1.13",
"core-js": "npm:core-js@^0.9.4"
}
}
}
Videos
12:54
Jest Configuration - YouTube
05:27
How to Install and Set Up Jest for JavaScript Testing (Step by ...
06:55
Jest TypeScript Basics: install, config and first test - YouTube
12:09
#1 Setup & Writing Our First Jest Test - JS Testing 101 with Jest ...
08:12
Jest setup for React TypeScript Vite project - 2025 - YouTube
09:11
Setting Up Node.js Project with TypeScript and Jest: Step-by-Step ...
Netlify
jest-preview.netlify.app › docs › en › 23.x › configuration
Configuring Jest · Jest
A list of reporter names that Jest uses when writing coverage reports. Any istanbul reporter can be used. Note: Setting this option overwrites the default values. Add "text" or "text-summary" to see a coverage summary in the console output. ... This will be used to configure minimum threshold ...
TutorialsPoint
tutorialspoint.com › jest › jest-configuration.htm
Jest - Configuration
In this chapter, we will cover how to configure Jest for optimal testing. We'll look at the configuration file, command-line options, and how to generate code coverage reports.
DEV Community
dev.to › manuartero › setup-jest-from-scratch-in-a-vanilla-js-project-47o0
Setup jest from scratch in a vanilla js project. - DEV Community
May 13, 2022 - $» jest --init The following questions will help Jest to create a suitable configuration for your project ✔ Would you like to use Jest when running "test" script in "package.json"? … yes ✔ Would you like to use Typescript for the configuration file? … no ✔ Choose the test environment that will be used for testing › jsdom (browser-like) ✔ Do you want Jest to add coverage reports?
Next.js
nextjs.org › docs › app › guides › testing › jest
Testing: Jest | Next.js
February 11, 2026 - Good to know: To test environment variables directly, load them manually in a separate setup script or in your jest.config.ts file. For more information, please see Test Environment Variables. If your project is using Module Path Aliases, you will need to configure Jest to resolve the imports by matching the paths option in the jsconfig.json file with the moduleNameMapper option in the jest.config.js file.
Jest
jestjs.io › getting started
Getting Started · Jest
May 7, 2026 - The ideal configuration for Babel will depend on your project. See Babel's docs for more details. ... Jest will set process.env.NODE_ENV to 'test' if it's not set to something else.
GitHub
github.com › jestjs › jest
GitHub - jestjs/jest: Delightful JavaScript Testing. · GitHub
May 9, 2026 - The ideal configuration for Babel will depend on your project. See Babel's docs for more details. ... Jest will set process.env.NODE_ENV to 'test' if it's not set to something else.
Starred by 45.4K users
Forked by 6.7K users
Languages TypeScript 80.3% | JavaScript 19.2%
npm
npmjs.com › package › jest-config
jest-config - npm
May 9, 2026 - Latest version: 30.4.2, last published: a month ago. Start using jest-config in your project by running `npm i jest-config`. There are 1016 other projects in the npm registry using jest-config.
» npm install jest-config
Published May 09, 2026
Version 30.4.2
ts-jest
huafu.github.io › ts-jest › user › config
Configuration | ts-jest
ts-jest configuration is done within Jest configuration object. This latest can be in package.json under the jest property, or in its own jest.config.js file.