Testing and Coverage

Overall coverage generated during this docs build:

Overall Test Coverage
Computed from lcov.info during this build

Commands

npm run test
make test

Testing Helpers

Use:

@ska-octopus-widget-sdk/widget-sdk/testing

Key helper:

  • installSdkWidgetTestMocks()

It provides predictable mocks for SDK hooks/components so widget unit tests stay focused on widget behavior.

Notes

  • Coverage values are generated from Vitest outputs during docs workflow.

  • Local docs builds should run tests first so coverage stays in sync.