Skip to content

Issue with jest --coverage #5

@stereobooster

Description

@stereobooster

Hi, I created babel macro based on yours. And I got this issue. Both of our projects share this issues. If I will find solution I will report back. Maybe you know what is the deal here.

if (referencePath.parentPath.type === "CallExpression") {
  requirelqip({ referencePath, state, babel });
} else {
  throw new Error(
    `This is not supported: \`${referencePath
      .findParent(babel.types.isExpression)
      .getSource()}\`. Please see the lqip.macro documentation`,
  );
}

Without --coverage - referencePath.parentPath.type === "CallExpression"

With --coverage - referencePath.parentPath.type === "SequenceExpression"

Reproducible demo https://github.com/stereobooster/babel-macro-issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions