Skip to content

Commit

Permalink
test(cli): add cli code coverage discovery
Browse files Browse the repository at this point in the history
This will enable code coverage information to be displayed for
src/cli.js.

The `nyc` package will be required since `child_process` functions
such as `exec` will be used for testing and `nyc` can detect code
coverage for spawned processes and jest cannot at the moment, see
(jestjs/jest#3190).

The `esm` package will be used to load the `cli.js` module during
testing since it's written using ECMAScript and that is not
supported by node`child_process` executing a script.
  • Loading branch information
Ghustavh97 committed Oct 28, 2020
1 parent 1f3d53b commit 91c7744
Show file tree
Hide file tree
Showing 6 changed files with 780 additions and 3 deletions.
Loading

0 comments on commit 91c7744

Please sign in to comment.