babel-plugin-istanbul icon indicating copy to clipboard operation
babel-plugin-istanbul copied to clipboard

Update package dependencies and Babel configurations

Open zodman opened this issue 1 month ago • 1 comments


> [email protected] pretest
> standard && npm run release


> [email protected] release
> babel src --out-dir lib

Successfully compiled 2 files with Babel (167ms).

> [email protected] test
> cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text mocha --timeout 5000 test/*.js



  babel-plugin-istanbul
    Babel plugin config
      ✔ should instrument file if shouldSkip returns false (56ms)
      ✔ should not instrument file if shouldSkip returns true
      ✔ should call onCover callback
      local node_modules
        ✔ should instrument file if shouldSkip returns false
        ✔ should not instrument file if shouldSkip returns true
    source maps
      ✔ should use inline source map
      ✔ should not use inline source map if inputSourceMap is set to false
      ✔ should use provided source map
    instrument options
      ✔ should honor coverageVariable option
      ✔ should honor coverageGlobalScope option
      ✔ should honor coverageGlobalScope option
      ✔ should honor ignoreClassMethods option
    package.json "nyc" config
      process.env.NYC_CONFIG is set
        ✔ should instrument file if shouldSkip returns false
        ✔ should not instrument file if shouldSkip returns true
      process.env.NYC_CONFIG is not set
        ✔ should instrument file if shouldSkip returns false (349ms)
        ✔ should not instrument file if shouldSkip returns true
        ✔ should load config using cwd (1094ms)
    regression tests
      ✔ should instrument: export const foo = () => {}
      ✔ should not conflict with transform-modules-commonjs (45ms)


  19 passing (2s)

-------------------------|---------|----------|---------|---------|-------------------
File                     | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s 
-------------------------|---------|----------|---------|---------|-------------------
All files                |     100 |      100 |     100 |     100 |                   
 index.js                |     100 |      100 |     100 |     100 |                   
 load-nyc-config-sync.js |     100 |      100 |     100 |     100 |                   
-------------------------|---------|----------|---------|---------|-------------------

zodman avatar Jul 05 '24 00:07 zodman