# @talend/scripts-config-jest

> Jest configuration for @talend/scripts-core

Latest version **14.4.0** (published 2025-09-09) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @talend/scripts-config-jest
pnpm add @talend/scripts-config-jest
yarn add @talend/scripts-config-jest
bun add @talend/scripts-config-jest
```

## Health

**Score 40/100 (D)** — status: stable.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 14.4.0 |
| Published | 2025-09-09 |
| First published | 2019-05-20 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 11 |
| Unpacked size | 18.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 159 |
| Author | Talend Frontend |
| Maintainers | talend-frontend |

## Links

- npm: https://www.npmjs.com/package/@talend/scripts-config-jest
- Repository: https://github.com/Talend/ui
- Homepage: https://github.com/Talend/ui/tree/master/packages/ui-scripts#readme
- Issues: https://github.com/Talend/ui/issues
- npm.io page: https://npm.io/package/@talend/scripts-config-jest

## Dependencies (11)

- [raf](https://npm.io/package/raf.md) ^3.4.1
- [jest](https://npm.io/package/jest.md) ^29.7.0
- [core-js](https://npm.io/package/core-js.md) ^3.45.1
- [babel-jest](https://npm.io/package/babel-jest.md) ^29.7.0
- [@types/jest](https://npm.io/package/@types/jest.md) ^29.5.14
- [regenerator-runtime](https://npm.io/package/regenerator-runtime.md) ^0.13.11
- [jest-serializer-html](https://npm.io/package/jest-serializer-html.md) ^7.1.0
- [jest-environment-jsdom](https://npm.io/package/jest-environment-jsdom.md) ^29.7.0
- [@testing-library/jest-dom](https://npm.io/package/@testing-library/jest-dom.md) ^6.8.0
- [@talend/scripts-config-babel](https://npm.io/package/@talend/scripts-config-babel.md) ^13.7.0
- [jest-environment-jsdom-global](https://npm.io/package/jest-environment-jsdom-global.md) ^4.0.0

## Recent versions

- 14.4.0 (latest) — 2025-09-09
- 11.0.0-rc.1 (next) — 2022-03-18
- 14.3.0 — 2025-07-09
- 14.2.2 — 2025-06-27
- 14.2.1 — 2025-06-19
- 14.2.0 — 2024-11-05
- 14.1.0 — 2024-06-13
- 14.0.4 — 2024-04-22
- 14.0.3 — 2024-03-11
- 14.0.2 — 2024-02-29
- 14.0.1 — 2023-12-01
- 14.0.0 — 2023-11-30
- 13.1.1 — 2023-11-24
- 13.1.0 — 2023-11-15
- 13.0.0 — 2023-10-24
- … 202 more at https://npm.io/package/@talend/scripts-config-jest/versions

## README

# Jest config customisation

To use the jest configuration in your IDE, or to add customisation

1. Create an `jest.config.js` at your project root folder
2. Make it extend the one from talend preset

```javascript
const defaults = require('@talend/scripts-config-jest');

module.exports = {
	...defaults,

	// add/change default config here
};
```

## how stop ignore transform over packages in node_modules

because jest support of [ECMAPScriptModules](https://github.com/facebook/jest/blob/64de4d7361367fd711a231d25c37f3be89564264/docs/ECMAScriptModules.md) is experiemental we have added possibilities to apply transforms on modules.
Since d3 7.x library use ECMAPScriptModules in it's package.json as main entry point it break jest with this kind of errors:

```
node_modules/d3-scale/src/index.js:1
export {
^
ParseError: 'import' and 'export' may appear only with 'sourceType: module'
```

You may encounter in your project the need to add other modules than just d3. To do so we provide to you the following API:

```javascript
// your project's jest.config.js
const config = require('@talend/scripts-config-jest/jest.config.js');
const testUtils = require('@talend/scripts-config-jest/utils');

testUtils.applyBabelTransformOn(config, ['dexie']);

module.exports = config;
```

---
_Source: https://npm.io/package/@talend/scripts-config-jest · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
