Jest
jestjs.io › configuring jest
Configuring Jest · Jest
May 8, 2026 - Print a warning indicating that there are probable open handles if Jest does not exit cleanly this number of milliseconds after it completes. Use 0 to disable the warning. ... A preset that is used as a base for Jest's configuration.
Kulshekhar
kulshekhar.github.io › presets
Presets | ts-jest
1 month ago - In Jest, presets are pre-defined configurations that help streamline and standardize the process of setting up testing environments.
npm
npmjs.com › package › @lwc › jest-preset
@lwc/jest-preset - npm
Jest preset configuration and stubs to help test LWC. Latest version: 19.1.2, last published: 19 days ago. Start using @lwc/jest-preset in your project by running `npm i @lwc/jest-preset`. There are 4 other projects in the npm registry using @lwc/jest-preset.
» npm install @lwc/jest-preset
Published Jul 24, 2025
Version 19.1.2
Repository https://github.com/salesforce/lwc-test
Homepage https://lwc.dev/
Netlify
jest-preview.netlify.app › docs › en › 23.x › configuration
Configuring Jest · Jest
A preset that is used as a base for Jest's configuration. A preset should point to an npm module that has a jest-preset.json or jest-preset.js file at the root.
Thymikee
thymikee.github.io › presets
Presets | jest-preset-angular
May 9, 2026 - In Jest, presets are pre-defined configurations that help streamline and standardize the process of setting up testing environments.
npm
npmjs.com › package › jest-preset-stylelint
jest-preset-stylelint - npm
Add jest.setup.js to your jest.config.js or jest field in package.json: { "preset": "jest-preset-stylelint", "setupFiles": ["<rootDir>/jest.setup.js"] }
» npm install jest-preset-stylelint
Published Jan 28, 2026
Version 9.1.0
Author stylelint
GitHub
github.com › thymikee › jest-preset-angular
GitHub - thymikee/jest-preset-angular: Jest configuration preset for Angular projects. · GitHub
Starred by 916 users
Forked by 304 users
Languages TypeScript 89.7% | JavaScript 7.1% | CSS 2.8%
npm
npmjs.com › package › jest-preset-angular
jest-preset-angular - npm
May 7, 2026 - A preset of Jest configuration for Angular projects.
» npm install jest-preset-angular
Published May 07, 2026
Version 16.1.5
Jest
jestjs.io › getting started
Getting Started · Jest
May 7, 2026 - Jest supports TypeScript, via Babel. First, make sure you followed the instructions on using Babel above. Next, install the @babel/preset-typescript: ... Then add @babel/preset-typescript to the list of presets in your babel.config.js.
GitHub
github.com › cloudscape-design › jest-preset
GitHub - cloudscape-design/jest-preset: Jest presets for Cloudscape Design System · GitHub
This package contains Jest presets used to test an application based on the Cloudscape Design System React components.
Starred by 5 users
Forked by 2 users
Languages JavaScript
npm
npmjs.com › package › @rnx-kit › jest-preset
@rnx-kit/jest-preset - npm
August 27, 2025 - Jest preset for React Native code bases. Latest version: 0.1.17, last published: 2 months ago. Start using @rnx-kit/jest-preset in your project by running `npm i @rnx-kit/jest-preset`. There are no other projects in the npm registry using @rnx-kit/jest-preset.
» npm install @rnx-kit/jest-preset
Published Jul 04, 2024
Version 0.1.17
Author Microsoft Open Source
Repository https://github.com/microsoft/rnx-kit
ts-jest
huafu.github.io › ts-jest › user › config
Configuration | ts-jest
If you’re already using another preset, you might want only some specific settings from the chosen ts-jest preset. In this case you’ll need to use the JavaScript version of Jest config (comment/uncomment according to your use-case): // jest.config.js const { defaults: tsjPreset } = require('ts-jest/presets'); // const { jsWithTs: tsjPreset } = require('ts-jest/presets'); // const { jsWithBabel: tsjPreset } = require('ts-jest/presets'); module.exports = { // [...] transform: { ...tsjPreset.transform, // [...] } }
npm
npmjs.com › package › jest-preset-preact
jest-preset-preact - npm
February 7, 2024 - Jest preset containing all required configuration for writing tests for preact. Features: Transpiles JSX to h() Aliases for react imports to point to preact/compat · Automatically serialize Preact VNodes in snapshots · Stub style imports (.css, ...
» npm install jest-preset-preact
Published Feb 07, 2024
Version 4.1.1
Author Preact Authors
GitHub
github.com › stylelint › jest-preset-stylelint
GitHub - stylelint/jest-preset-stylelint: Common configuration options for Jest in Stylelint environments. · GitHub
Add jest.setup.js to your jest.config.js or jest field in package.json: { "preset": "jest-preset-stylelint", "setupFiles": ["<rootDir>/jest.setup.js"] }
Starred by 14 users
Forked by 5 users
Languages JavaScript
Jestjs
archive.jestjs.io › docs › en › 24.x › configuration
Configuring Jest · Jest
On Windows, it creates a new start ... runs ... Specifies notification mode. Requires notify: true. ... A preset that is used as a base for Jest's configuration....
GitHub
github.com › thymikee › jest-preset-angular › blob › main › CHANGELOG.md
jest-preset-angular/CHANGELOG.md at main · thymikee/jest-preset-angular
presets: add type definition for presets entry point (#801) (e4ff0c0) ... Drop support for Node.js version 10 since it becomes EOL on 2021-04-30. Required Node version now is >=12.13.0. Require Jest 27.
Author thymikee
React Native
reactnative.dev › blog › 2026 › 04 › 07 › react-native-0.85
React Native 0.85 - New Animation Backend, New Jest Preset Package · React Native
April 7, 2026 - React Native's Jest preset has been extracted from react-native into the new @react-native/jest-preset, reducing core package size and giving projects more flexibility in their testing setup. Update your jest.config.js with a one-line change:
npm
npmjs.com › package › @wordpress › jest-preset-default
@wordpress/jest-preset-default - npm
November 26, 2025 - // Props to @gdborton for sharing this technique in his article: // https://medium.com/airbnb-engineering/unlocking-test-performance-migrating-from-mocha-to-jest-2796c508ec50. let mockEnzymeSetup = false; jest.mock( 'enzyme', () => { const actualEnzyme = jest.requireActual( 'enzyme' ); if ( ! mockEnzymeSetup ) { mockEnzymeSetup = true; // Configure enzyme 3 for React, from docs: http://airbnb.io/enzyme/docs/installation/index.html const Adapter = jest.requireActual( '@wojtekmaj/enzyme-adapter-react-17' ); actualEnzyme.configure( { adapter: new Adapter() } ); } return actualEnzyme; } ); If you also use snapshot tests with enzyme, you might want to add support for serializing them, through the enzyme-to-json package.
» npm install @wordpress/jest-preset-default
Top answer 1 of 3
4
I'm using expo and after updates from 38 to 39, Jest stopped working. I had same issues — it was complaining about missing preset js files.
Preset below didn't work for me:
"preset": "@testing-library/react-native",
So I have changed jest.config.js like this:
module.exports = {
clearMocks: true,
coverageDirectory: 'coverage',
testEnvironment: 'node',
preset: './node_modules/jest-expo/jest-preset.js',
}
Changed preset file location to expo's one which im using and it did the work
2 of 3
1
The preset no longer exists in >=7.0.0 "@testing-library/react-native". According to the documentation it seems "react-native" should be used as the preset.
"preset": "react-native",
V7 upgrade documentation reference