I figured out that the config file is JSON.

{
  "testPathDirs": ["coredata/src"]
}

Unfortunately I found nowhere in the documentation a hint about this.

Answer from Carles Barrobés on Stack Overflow
🌐
Jest
jestjs.io › configuring jest
Configuring Jest · Jest
1 week ago - 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.
🌐
Jest-bot
jest-bot.github.io › jest › docs › configuration.html
Configuring package.json · Jest
Jest's configuration can be defined in the package.json file of your project or through the --config <path/to/json> option.
🌐
Valentino G.
valentinog.com › blog › jest-coverage
Configuring code coverage in Jest, the right way
November 3, 2021 - Key takeaway: always pass --collectCoverageFrom and --coverage to Jest from the command line, or configure collectCoverage and collectCoverageFrom in your Jest config.
🌐
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 ...
Find elsewhere
🌐
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
3 days ago - 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.
🌐
BrowserStack
browserstack.com › home › guide › how to configure jest
How to Configure Jest | BrowserStack
August 4, 2025 - One way is to create a new JSON file and name it with an extension, ‘jest.config.json’. It is a preferred method of configuring your environment variables if you plan to make a cleaner project structure by separating the env file from the package.json file.
🌐
Swizec Teller
swizec.com › blog › how-to-configure-jest-with-typescript
How to configure Jest with TypeScript | Swizec Teller
October 18, 2021 - This installs jest and ts-jest, TypeScript (if you don't have it yet), and type definitions for jest so TypeScript knows what's available. You'll need ts-node to support TypeScript-based configuration later.
🌐
Jest
jestjs.io › getting started
Getting Started · Jest
1 week ago - 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.
🌐
npm
npmjs.com › package › jest-config
jest-config - npm
1 week ago - Latest version: 30.4.2, last published: 3 days 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
🌐
Medium
medium.com › @jelena.durovic › how-to-configure-jest-with-typescript-fe034ad7d6c2
How to configure Jest with TypeScript | by Jelena Durovic | Medium
May 17, 2022 - This installs jest and ts-jest, TypeScript (if you don't have it yet), and type definitions for jest so TypeScript knows what's available.
🌐
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.
🌐
Jest
jestjs.io › jest cli options
Jest CLI Options · Jest
1 week ago - Alias: -c. The path to a Jest config file specifying how to find and execute tests. If no rootDir is set in the config, the directory containing the config file is assumed to be the rootDir for the project.