Closed as not planned
Closed as not planned
Description
🐛 Bug Report
ES Modules that are objects (not functions) are bypassed/ignored by coverage tests, even with written tests for the module.
Confirmed in following versions: 24.6, 24.7.*, 24.8 (23.6 is working normally)
To Reproduce
- Install dependencies
- Execute coverage tests with
npx jest
Expected behavior
All js files being covered (green), no coverage errors
Link to repl or repo (highly encouraged)
https://github.com/klarkc/jest_cov_bug/
Run npx envinfo --preset jest
System:
OS: Linux 4.15 Ubuntu 18.04.2 LTS (Bionic Beaver)
CPU: (4) x64 Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz
Binaries:
Node: 12.4.0 - /usr/local/bin/node
Yarn: 1.16.0 - ~/.npm-global/bin/yarn
npm: 6.9.0 - ~/.npm-global/bin/npm
npmPackages:
jest: ^24.8.0 => 24.8.0