Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coverage data had invalid formatting at path #61

Open
beshur opened this issue Mar 10, 2023 · 1 comment
Open

Coverage data had invalid formatting at path #61

beshur opened this issue Mar 10, 2023 · 1 comment

Comments

@beshur
Copy link

beshur commented Mar 10, 2023

Hi.

I have my coverage from jest, both in json and json-summary formats.
Either of them results in Coverage data had invalid formatting at path error.

Do you have any tips?

dangerfile:

import {danger, schedule, warn} from 'danger';
import {istanbulCoverage} from 'danger-plugin-istanbul-coverage';

schedule(
  istanbulCoverage({
    // Add a maximum number of entries to display
    numberOfEntries: 10,

    // // The location of the istanbul coverage file.
    coveragePath: '.coverageJest/coverage-summary.json',
  }),
);
@adamperez
Copy link

I had the same issue. Recently solved it by using the lcov file in this plugin and it worked well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants