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 Overflow
🌐
Jest
jestjs.io › configuring jest
Configuring Jest · Jest
May 8, 2026 - The Jest philosophy is to work great by default, but sometimes you just need more configuration power. It is recommended to define the configuration in a dedicated JavaScript, TypeScript or JSON file. The file will be discovered automatically, if it is named jest.config.js|ts|mjs|mts|cjs|cts|json.
🌐
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.
🌐
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 ...ig.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...
🌐
Netlify
jest-preview.netlify.app › docs › en › 23.x › configuration
Configuring Jest · Jest
Jest's configuration can be defined in the package.json file of your project, or through a jest.config.js file or through the --config <path/to/js|json> option.
🌐
W3Resource
w3resource.com › jest › jest-configuring-jest-compiled.php
Configuring Jest: Setup Options, Defaults, and Customization
July 12, 2024 - In this tutorial we will focus on configuring Jest. Jest's configuration can be defined inside the package.json file of your project, through jest.config.js file or using the --config <path/to/js|json> option.
🌐
Jest
jestjs.io › getting started
Getting Started · Jest
May 7, 2026 - Here's how to run Jest on files matching my-test, using config.json as a configuration file and display a native OS notification after the run:
🌐
GitHub
github.com › bullhorn › taurus › blob › master › jest.config.json
taurus/jest.config.json at master · bullhorn/taurus
"^.+\\.tsx?$": "ts-jest" }, "testRegex": "(/test/.*[.](test|spec))\\.(ts|tsx|js)$", "testPathIgnorePatterns": [ "<rootDir>[/\\\\](dist|coverage|node_modules)[/\\\\]", "_\\w*.\\w+$" ], "moduleFileExtensions": [ "ts", "tsx", "js" ] }
Author   bullhorn
Find elsewhere
🌐
Educative
educative.io › home › courses › mastering jest: a complete guide to testing › the jest config file
Jest Config File Setup and Key Configuration Options
Write the settings in jest.config.js or jest.config.ts, and place the file in the application root. Write the settings in any file and identify the path/name with the CLI flag. In this method, we only need to add the jest key at the top level ...
🌐
TutorialsPoint
tutorialspoint.com › jest › jest-configuration.htm
Jest - Configuration
... When you run Jest with code ... integration with code coverage tools like Coveralls or Codecov). json: Outputs a JSON file with coverage information....
🌐
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.
🌐
Swizec Teller
swizec.com › blog › how-to-configure-jest-with-typescript
How to configure Jest with TypeScript | Swizec Teller
October 18, 2021 - Jest doesn't require any configuration to find your tests. Goes through the whole project and looks for files that look like they're tests. This will bite us later, but it's lovely.
🌐
SWC
swc.rs › docs › usage › jest
@swc/jest
jest.config.js · const fs = require('fs') const config = JSON.parse(fs.readFileSync(`${__dirname}/.swcrc`, 'utf-8')) module.exports = { transform: { '^.+\\.(t|j)sx?$': ['@swc/jest', { ...config, /* custom configuration in Jest */ }], }, } A: Setup Jest following this Guide .
🌐
GitHub
gist.github.com › codejedi365 › f6a1115aa822b73cdc4475f46d179f83
Configuring Typescript project with `ts-jest` & `jest-extended` · GitHub
tsconfig.jest.json: Extend your Typescript configuration to include your tests directory for types & compilation
🌐
PhillCode
phillcode.hashnode.dev › jest-config
PhillCode
November 7, 2023 - 12+ years as Software Engineer and Solutions Architect, I also have a strong experience in Leadership, Product Development and Project Management.
🌐
DevDocs
devdocs.io › jest
DevDocs — Jest documentation
Jest 29.0.1 API documentation with instant search, offline support, keyboard shortcuts, mobile version, and more.
🌐
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 - // jest.config.js /** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */module.exports = { preset: "ts-jest", testEnvironment: "jest-environment-jsdom", transform: { '^.+\\.ts?$': 'ts-jest', '^.+\\.tsx?$': 'ts-jest', '^.+\\.js?$': 'babel-jest', '^.+\\.jsx?$': 'babel-jest', '^.+\\.scss$": 'jest-scss-transform' } } If you don’t have it yet, add this section to your package.json: { "scripts": { "test": "jest" } } If you haven’t yet, you’ll need to configure TypeScript, but if the app you are working on already have tsconfig.json file you can ignore this setup: // tsconfig.json{ "c