@nx/jest is a package that integrates Jest testing framework with Nx, a set of extensible dev tools for monorepos. It allows you to run and manage Jest tests efficiently within an Nx workspace.
What are @nx/jest's main functionalities?
Running Jest Tests
This configuration allows you to run Jest tests for multiple projects within an Nx workspace. The 'projects' array specifies the paths to the projects you want to include.
This sample shows how to create a custom Jest configuration for a specific project within an Nx workspace. It includes settings for transforming files, module file extensions, and coverage directory.
Jest is a delightful JavaScript testing framework with a focus on simplicity. It works out of the box for most JavaScript projects. While @nx/jest integrates Jest with Nx, Jest itself is a standalone testing framework.
Karma is a test runner developed by the AngularJS team. It allows you to run tests in multiple real browsers. Unlike @nx/jest, which is focused on Jest integration, Karma is more about running tests in different environments.
Mocha is a feature-rich JavaScript test framework running on Node.js and in the browser. It makes asynchronous testing simple. Mocha is more flexible and less opinionated compared to Jest, which is more integrated and comes with more built-in features.
Nx: Smart Monorepos · Fast CI
Nx is a build system, optimized for monorepos, with plugins for popular frameworks and tools and advanced CI capabilities including caching and distribution.
The Nx Plugin for Jest contains executors and generators allowing your workspace to use the powerful Jest testing capabilities.
The npm package @nx/jest receives a total of 1,203,322 weekly downloads. As such, @nx/jest popularity was classified as popular.
We found that @nx/jest demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 4 open source maintainers collaborating on the project.
Package last updated on 06 Feb 2025
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Oxlint's beta release introduces 500+ built-in linting rules while delivering twice the speed of previous versions, with future support planned for custom plugins and improved IDE integration.
A compromised GitHub Action exposed secrets in CI/CD logs, putting thousands of projects at risk and forcing developers to urgently secure their workflows.
A malicious Maven package typosquatting a popular library is secretly stealing OAuth credentials on the 15th of each month, putting Java developers at risk.