Bug Report
Current Behavior
After upgrade @babel/core from 7.5.5 to 7.6.0 jest --coverage ignores /* istanbul ignore next */
Input Code
- clone https://github.com/webdriverio/webdriverio
- remove
node_modules and package-lock.json
- set
@babel/core version to 7.6.0
npm install
- run
node_modules/.bin/jest --clearCache ; node_modules/.bin/jest packages/wdio-sync
Actual Result:
executeHooksWithArgs in executeHooksWithArgs.js is NOT ignored which means that /* istanbul ignore next */ is ignored
NOTE:
if you repeat steps from 1 to 5 but set @babel/core version to 7.5.5 executeHooksWithArgs in executeHooksWithArgs.js will be ignored, which means the issue is regression since @babel/core version 7.5.5
Expected behavior/code
/* istanbul ignore next */ should be taken into account
Babel Configuration (.babelrc, package.json, cli command)
https://github.com/webdriverio/webdriverio/blob/master/babel.config.js
Environment
- Babel version(s):
@babel/core 7.6.0
- Node/npm version: Node 10 / npm 6.9.0
- OS: OSX 10.3.6 / Ubuntu Xenial
- Monorepo: lerna
Possible Solution
Additional context/Screenshots
@babel/core 7.6.0

@babel/core 7.5.5

Bug Report
Current Behavior
After upgrade
@babel/corefrom 7.5.5 to 7.6.0jest --coverageignores/* istanbul ignore next */Input Code
node_modulesandpackage-lock.json@babel/coreversion to7.6.0npm installnode_modules/.bin/jest --clearCache ; node_modules/.bin/jest packages/wdio-syncActual Result:
executeHooksWithArgsinexecuteHooksWithArgs.jsis NOT ignored which means that/* istanbul ignore next */is ignoredNOTE:
if you repeat steps from 1 to 5 but set
@babel/coreversion to7.5.5executeHooksWithArgsinexecuteHooksWithArgs.jswill be ignored, which means the issue is regression since@babel/coreversion7.5.5Expected behavior/code
/* istanbul ignore next */should be taken into accountBabel Configuration (.babelrc, package.json, cli command)
https://github.com/webdriverio/webdriverio/blob/master/babel.config.js
Environment
@babel/core7.6.0Possible Solution
Additional context/Screenshots

@babel/core7.6.0@babel/core7.5.5