You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
version: 2.1 orbs: node: circleci/node@X.Y.Z workflows: main: jobs: - node/install-packages: pkg-manager: yarn - node/test: requires: - node/install-packages pkg-manager: yarn test-results-for: jest + store-coverage: true
Supporting Documentation Links:
Coverage guide: https://circleci.com/docs/code-coverage#javascript
store_test_results
docs: https://circleci.com/docs/configuration-reference#storetestresultsThe text was updated successfully, but these errors were encountered: