Update node/test to add support for exporting the coverage results of ran tests. Currently tests can have their results stored via store_test_results which exposes the pass/fail statuses to CircleCI. But the coverage is lost and a second testing operation has to happen to generate the coverage. This means the tests must be ran twice: 1) to get the pass/fail via node/test, 2) to get coverage via something like yarn jest --coverage with store_artifacts.
Describe Request:
Update
node/test
to add support for exporting the coverage results of ran tests. Currently tests can have their results stored viastore_test_results
which exposes the pass/fail statuses to CircleCI. But the coverage is lost and a second testing operation has to happen to generate the coverage. This means the tests must be ran twice: 1) to get the pass/fail vianode/test
, 2) to get coverage via something likeyarn jest --coverage
withstore_artifacts
.Examples:
Current
Future
Supporting Documentation Links:
Coverage guide: https://circleci.com/docs/code-coverage#javascript
store_test_results
docs: https://circleci.com/docs/configuration-reference#storetestresults