Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@angular-builders/jest

Package Overview
Dependencies
Maintainers
1
Versions
168
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

  • 18.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
130K
decreased by-6.45%
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

FAQs

Package last updated on 17 Jun 2024

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc