Skip to content

Coverage for semaphore/index.ts shows errors #7

@ComFreek

Description

@ComFreek

Coverage for semaphore/index.ts shows error information, which also seems to decrease coverage percentage for no reason.

How to reproduce

  1. async-playground at commit fa32e5e.

  2. Optional: produce coverage info

  3. Go to coverage/semaphore/index.ts.html. Live: https://comfreek.github.io/async-playground/coverage/semaphore/index.ts.html

  4. The following error message is shown there:

    Cannot read property 'start' of undefined
    TypeError: Cannot read property 'start' of undefined
        at /home/travis/build/ComFreek/async-playground/node_modules/nyc/node_modules/istanbul-reports/lib/html/annotator.js:50:29
        at Array.forEach ()
        at annotateStatements (/home/travis/build/ComFreek/async-playground/node_modules/nyc/node_modules/istanbul-reports/lib/html/annotator.js:46:33)
        at Object.annotateSourceCode (/home/travis/build/ComFreek/async-playground/node_modules/nyc/node_modules/istanbul-reports/lib/html/annotator.js:190:9)
        at HtmlReport.onDetail (/home/travis/build/ComFreek/async-playground/node_modules/nyc/node_modules/istanbul-reports/lib/html/index.js:237:39)
        at Visitor.(anonymous function) [as onDetail] (/home/travis/build/ComFreek/async-playground/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:34:30)
        at ReportNode.Node.visit (/home/travis/build/ComFreek/async-playground/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:123:17)
        at /home/travis/build/ComFreek/async-playground/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:116:23
        at Array.forEach ()
        at visitChildren (/home/travis/build/ComFreek/async-playground/node_modules/nyc/node_modules/istanbul-lib-report/lib/tree.js:115:32)
    

Related bug reports

Summary:

  • Sometimes due to old Babel plugins being used. We don't use Babel here. (We only use TypeScript.)
  • Sometimes non-deterministic due to cached data. This is reproducible on Travis CI, which should not cache any data.
  • Sometimes unsolved.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions