Skip to content

No coverage using v11.0.0, ava, and nyc #39

Closed
@chriszarate

Description

@chriszarate

After following the instructions in the release notes and nyc's updated README, I am unable to get v11.0.0 to generate coverage with nyc v6.6.1. Strangely, however, simply downgrading __coverage__ to v1.11.111 fixes the issue. I'm frankly not sure if this is an issue with __coverage__, nyc, or my own error.

Here is an extremely simple proof-of-problem that will hopefully allow anyone to replicate the issue:
https://github.com/chriszarate/nyc-coverage-11.0.0

The folder coverage-11.0.0 demonstrates the problem. The output of npm test shows an empty coverage report; the .nyc_output folder is created but is empty. To replicate:

cd coverage-11.0.0
npm i
npm test

The folder coverage-1.11.111 demonstrates working coverage output with the only change being a downgrade to v1.11.111. The .nyc_output contains the expected JSON output.

Any guidance you could provide on how to troubleshoot this myself would be appreciated. Please let me know if this should be filed with nyc or elsewhere.

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