@istanbuljs/nyc-config-hook-run-in-this-context
nyc configuration for hook-run-in-this-context
Last updated 10 months ago by coreyfarrell .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @istanbuljs/nyc-config-hook-run-in-this-context 
SYNC missed versions from official npm registry.

nyc-config-hook-run-in-this-context

Handy configuration for instrumenting with hook-run-in-this-context enabled.

Prior to node.js 11.11.0 require() was implemented using vm.runInThisContext(). This meant that running with hook-run-in-this-context enabled required disabling hook-require. Starting with node 11.11.0 require() is no longer implemented with vm.runInThisContext(), so hook-require still needs to be enabled. This base configuration enables hook-run-in-this-context and provides the correct setting for hook-require to ensure that modules loaded by require() are instrumented once.

First install the dependencies:

npm i nyc @istanbuljs/nyc-config-hook-run-in-this-context --save-dev

.nycrc

And write a .nycrc that looks like this:

{
    "extends": "@istanbuljs/nyc-config-hook-run-in-this-context"
    /* add custom settings */
}

License

ISC

Current Tags

  • 1.0.0                                ...           latest (10 months ago)

6 Versions

  • 1.0.0                                ...           10 months ago
  • 1.0.0-alpha.2                                ...           10 months ago
  • 1.0.0-alpha.1                                ...           a year ago
  • 1.0.0-alpha.0                                ...           a year ago
  • 0.1.1                                ...           a year ago
  • 0.1.0                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 1
Dependencies (1)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |