[Bug]: Error when running jest with code coverage #15958
Labels
area: third party
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
馃捇
How are you using Babel?
jest
Input code
Issue when running jest with code coverage turned on. Works fine when run without code coverage.
npx jest --env=jsdom --collect-coverage --watchAll=false
Configuration file name
No response
Configuration
Current and expected behavior
This issue only presents itself when updating from @babel/core from 7.22.15 to 7.22.17
Environment
System:
OS: Windows 10 10.0.19045
Binaries:
Node: 18.15.0 - C:\tmp\nodejs\node.EXE
Yarn: 1.22.19 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 9.5.0 - C:\tmp\nodejs\npm.CMD
npmPackages:
@babel/cli: 7.22.15 => 7.22.15
@babel/core: 7.22.17 => 7.22.17
@babel/plugin-proposal-class-properties: 7.18.6 => 7.18.6
@babel/plugin-proposal-export-default-from: 7.22.5 => 7.22.5
@babel/plugin-proposal-object-rest-spread: ^7.20.7 => 7.20.7
@babel/plugin-transform-typescript: 7.22.15 => 7.22.15
@babel/preset-env: 7.22.15 => 7.22.15
@babel/preset-react: 7.22.15 => 7.22.15
@babel/preset-typescript: 7.22.15 => 7.22.15
babel-plugin-module-resolver: 5.0.0 => 5.0.0
babel-plugin-transform-es2015-modules-umd: 6.24.1 => 6.24.1
babel-plugin-typescript-to-proptypes: 2.1.0 => 2.1.0
eslint: 8.49.0 => 8.49.0
jest: 29.6.4 => 29.6.4
Possible solution
There is no function to return from in this file
node_modules\@babel\core\lib\index.js
Additional context
No response
The text was updated successfully, but these errors were encountered: