πŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more β†’
Socket
Sign inDemoInstall
Socket

@angular-builders/jest

Package Overview
Dependencies
Maintainers
1
Versions
174
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular-builders/jest

Jest runner for Angular build facade. Allows ng test run with Jest instead of Karma

19.0.1
latest
Source
npm
Version published
Weekly downloads
136K
-17.32%
Maintainers
1
Weekly downloads
Β 
Created

What is @angular-builders/jest?

@angular-builders/jest is an Angular builder that allows you to use Jest as a test runner for Angular projects. It integrates seamlessly with Angular CLI, enabling you to run Jest tests with Angular's build system.

What are @angular-builders/jest's main functionalities?

Running Jest Tests

This configuration allows you to run Jest tests using Angular CLI. By setting the builder to '@angular-builders/jest:run', you can execute Jest tests with the 'ng test' command.

json
{
  "architect": {
    "test": {
      "builder": "@angular-builders/jest:run",
      "options": {}
    }
  }
}

Custom Jest Configuration

You can customize your Jest configuration by adding a 'jest' section in your Angular project's configuration file. This allows you to specify presets, setup files, and other Jest options.

json
{
  "jest": {
    "preset": "jest-preset-angular",
    "setupFilesAfterEnv": ["<rootDir>/src/setup-jest.ts"]
  }
}

Code Coverage

Enabling code coverage is straightforward with @angular-builders/jest. By setting the 'codeCoverage' option to true, you can generate code coverage reports for your Angular project.

json
{
  "architect": {
    "test": {
      "builder": "@angular-builders/jest:run",
      "options": {
        "codeCoverage": true
      }
    }
  }
}

Other packages similar to @angular-builders/jest

Keywords

jest

FAQs

Package last updated on 07 Apr 2025

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