Skip to content

Support HMR-style coverage. #9

@izaakschroeder

Description

@izaakschroeder

HMR Spec Coverage

foo.spec.js -> foo.js: overwrite coverage info only for foo.js

On HMR:

  • clear coverage counters for reloaded modules
  • run reloaded code
  • replace coverage counters for reloaded modules

Other Notes:

// TODO: Allow "merging" of same-hash coverage where the counters are
// incremented. This could be for someone who has to run a program
// several times for the same files to cover everything.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions