Socket
Socket
Sign inDemoInstall

@nrwl/jest

Package Overview
Dependencies
10
Maintainers
1
Versions
1499
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nrwl/jest

Jest plugin for Nx


Version published
Weekly downloads
1.5M
increased by9.41%
Maintainers
1
Created
Weekly downloads
Ā 

Package description

What is @nrwl/jest?

The @nrwl/jest package is part of the Nx suite of tools, designed to enhance the development experience with Jest in a monorepo setup. It provides seamless integration of Jest into Nx workspaces, enabling efficient unit testing configurations, execution, and optimizations tailored for projects managed within an Nx workspace.

What are @nrwl/jest's main functionalities?

Simplified Jest Configuration

Allows for simplified and centralized Jest configuration within an Nx workspace, making it easier to manage and share configurations across multiple library and application projects.

{
  "jestConfig": "./jest.config.js",
  "tsConfig": "./tsconfig.spec.json",
  "setupFile": "./src/test-setup.ts"
}

Parallel Test Execution

Enables parallel execution of tests across multiple projects within the workspace, significantly reducing the total time required for running tests in large projects.

nx run-many --target=test --all --parallel

Test Affected Projects

Identifies and runs tests only for the projects affected by recent changes, improving efficiency in continuous integration pipelines by skipping tests for unchanged projects.

nx affected:test

Other packages similar to @nrwl/jest

Readme

Source

Nx - Smart, Extensible Build Framework

CircleCI License NPM Version Semantic Release Commitizen friendly Join the chat at https://gitter.im/nrwl-nx/community Join us @nrwl/community on slack


Jest Plugin for Nx

What is Nx?

šŸ”Ž Smart, Extensible Build Framework

Nx is a smart and extensible build framework to help you architect, test, and build at any scale ā€” integrating seamlessly with modern technologies and frameworks while providing a distributed graph-based task execution, computation caching, smart rebuilds of affected projects, powerful code generators, editor support, GitHub apps, and more.

Best-in-Class Support for Monorepos

Nx provides distributed graph-based task execution and computation caching.

Nx is smart. It analyzes your workspace and figures out what can be affected by every code change. That's why Nx doesn't rebuild and retest everything on every commit--it only rebuilds what is necessary .

Nx partitions commands into a graph of smaller tasks. Nx then runs those tasks in parallel, and it can even distribute them across multiple machines without any configuration.

Nx also uses a distributed computation cache. If someone has already built or tested similar code, Nx will use their results to speed up the command for everyone else.

Holistic Dev Experience Powered by an Advanced CLI and Editor Plugins

Nx helps scale your development from one team building one application to many teams building multiple frontend and backend applications all in the same workspace. When using Nx, developers have a holistic dev experience powered by an advanced CLI (with editor plugins), capabilities for controlled code sharing and consistent code generation.

Rich Plugin Ecosystem

Nx is an open platform with plugins for many modern tools and frameworks. It has support for TypeScript, React, Angular, Cypress, Jest, Prettier, Nest.js, Next.js, Storybook, Ionic among others. With Nx, you get a consistent dev experience regardless of the tools used.

What is It?

Executors and generators adding Jest tests to applications and libraries.

How to Use

This package is used by the @nrwl/web, @nrwl/react, @nrwl/angular, @nrwl/node. See https://github.com/nrwl/nx for more information.

Documentation & Resources

Even though Nx isn't technology specific, we provide 3 separate flavours of the documentation site to it make it easier for you to get up and running. For every link below, you will be able to select whether you want your examples to be written in React, Node or Angular.

Quick Start Videos

Courses

Scale React Development with NxNx WorkspacesAdvanced Nx Workspaces

Nx - Scale React Development with Nx video course

Nx Workspaces video course

Nx Advanced Workspaces video course

Videos, Blogs, Books, Examples

Engage with the Core Team and the Community

Keywords

FAQs

Last updated on 06 Dec 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with āš”ļø by Socket Inc