Socket
Book a DemoInstallSign in
Socket

@istanbuljs/nyc-config-typescript

Package Overview
Dependencies
Maintainers
5
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@istanbuljs/nyc-config-typescript

nyc configuration that works with typescript

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
499K
0.18%
Maintainers
5
Weekly downloads
 
Created

What is @istanbuljs/nyc-config-typescript?

@istanbuljs/nyc-config-typescript is a configuration preset for the NYC code coverage tool, specifically tailored for TypeScript projects. It simplifies the setup process for collecting code coverage metrics in TypeScript applications by providing a pre-configured set of options that work out of the box.

What are @istanbuljs/nyc-config-typescript's main functionalities?

Pre-configured NYC settings for TypeScript

This feature allows you to extend the default NYC configuration with settings optimized for TypeScript. By adding this to your `nyc` configuration in `package.json`, you can easily integrate code coverage into your TypeScript project.

{
  "extends": "@istanbuljs/nyc-config-typescript"
}

Source map support

This configuration ensures that source maps are properly handled, allowing for accurate code coverage reports that map back to the original TypeScript source files. It includes all TypeScript files in the `src` directory and excludes declaration files.

{
  "nyc": {
    "extends": "@istanbuljs/nyc-config-typescript",
    "all": true,
    "check-coverage": true,
    "reporter": ["html", "text-summary"],
    "include": ["src/**/*.ts"],
    "exclude": ["**/*.d.ts"]
  }
}

Other packages similar to @istanbuljs/nyc-config-typescript

Keywords

typescript

FAQs

Package last updated on 01 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