Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

istanbul-lib-hook

istanbuljs22.4mBSD-3-Clause3.0.0TypeScript support: definitely-typed

Hooks for require, vm and script used in istanbul

istanbul, hook

readme

IstanbulJS

Greenkeeper badge Build Status Coverage Status Conventional Commits community slack

Having problems? want to contribute? join our community slack.

Everyone's favorite JS code coverage tool.

About this Repo

This monorepo contains the nuts and bolts utility libraries that facilitate IstanbulJS test coverage; Why a monorepo?

  • it allows us to more easily test API changes across coupled modules, e.g., changes to istanbul-lib-coverage potentially have an effect on istanbul-lib-instrument.
  • it gives us a centralized repo for discussions about bugs and upcoming features.

Where Should I Start

You're probably actually looking for one of the following repos:

  • nyc: the IstanbulJS 2.0 command line interface, providing painless coverage support for most popular testing frameworks.
  • babel-plugin-istanbul: a babel plugin for instrumenting your ES2015+ code with Istanbul compatible coverage tracking.
  • istanbul: the legacy 1.0 IstanbulJS interface (you should now consider instead using nyc or babel-plugin-istanbul).

Contributing

Contributing to the packages contained in this repo is easy:

  1. after checking out, run npm install (this will run the lerna build).
  2. to run all tests, simply run npm test in the root directory.
  3. to run tests for a single package cd package/:name and run npm test within the package's folder.

changelog

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

3.0.0 (2019-12-20)

Note: Version bump only for package istanbul-lib-hook

3.0.0-alpha.2 (2019-12-07)

Note: Version bump only for package istanbul-lib-hook

3.0.0-alpha.1 (2019-10-06)

Bug Fixes

  • package: update append-transform to version 2.0.0 (#466) (7344b2b)

3.0.0-alpha.0 (2019-06-19)

Features

  • Update dependencies, require Node.js 8 (#401) (bf3a539)

BREAKING CHANGES

  • Node.js 8 is now required

2.0.7 (2019-04-24)

Note: Version bump only for package istanbul-lib-hook

2.0.6 (2019-04-09)

Note: Version bump only for package istanbul-lib-hook

2.0.5 (2019-04-03)

Note: Version bump only for package istanbul-lib-hook

2.0.4 (2019-03-12)

Note: Version bump only for package istanbul-lib-hook

2.0.3 (2019-01-26)

Note: Version bump only for package istanbul-lib-hook

2.0.2 (2018-12-25)

Note: Version bump only for package istanbul-lib-hook

2.0.1 (2018-07-07)

Note: Version bump only for package istanbul-lib-hook

2.0.0 (2018-06-06)

Bug Fixes

  • 1.2.x should have been a breaking change (#181) (2872835)

BREAKING CHANGES

  • the closure provied to hookRequire, hookRunInThisContext, etc., is now passed an object with a filename member, rather than a string representing filename.

1.2.1 (2018-06-06)

Bug Fixes

1.2.0 (2018-03-04)

Features

  • hookRunInThisContext now takes options object rather than filename (#99) (1504374)

1.1.0 (2017-10-21)

Features

1.0.7 (2017-05-27)

1.0.6 (2017-04-29)

1.0.5 (2017-03-27)

1.0.4 (2017-03-21)

1.0.3 (2017-03-21)

1.0.2 (2017-03-21)

1.0.0 (2017-01-17)

Bug Fixes

  • update append-transform to version that fixes issues run into by ts-node (f4aaf79)