Skip to content

babel-jest 22.2.0 lowered our coverage significantly #5498

@StephanBijzitter

Description

@StephanBijzitter

Do you want to request a feature or report a bug?
Bug.

What is the current behavior?
Everything works, but our line coverage compared to 22.1.0 is significantly less, without any code or test changes.

What is the expected behavior?
Everything works, and our line coverage remains the same.

Please provide your exact Jest configuration and mention your Jest, node,
yarn/npm version and operating system.

Content of the script used in package.json:

"jest": "jest --coverage --verbose --runInBand"

Content of babel configuration in package.json:

"babel": {
    "presets": [
      "es2015",
      "react",
      "stage-0"
    ],
    "plugins": [
      [
        "module-resolver",
        {
          "root": [
            "./source",
            "./src"
          ]
        }
      ]
    ]
  },

Content of the configuration file:
https://gist.github.com/StephanBijzitter/036140f1b4c8174018bd45c65360077f

Node 8.9.1 and Yarn 1.3.2, OS X & Ubuntu (Windows not tested)

With babel-jest 22.1.0:
screen shot 2018-02-08 at 16 14 24

With babel-jest 22.2.0:
screen shot 2018-02-08 at 16 15 30

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions