pegasystems / constellation-ui-gallery

This open-source repository provides a collection of ready-to-use and customizable Constellation DX components. Use this resource to gain inspiration, best practices, and a solid foundation for implementing custom components.
https://pegasystems.github.io/constellation-ui-gallery/
Apache License 2.0
30 stars 22 forks source link

Add unit tests based on the story #18

Closed ricmars closed 6 months ago

ricmars commented 7 months ago

Right now the testing is pretty basic and just opens each story and check that no error is reported We should extend the functionality by added a couple of unit tests for each story using https://storybook.js.org/docs/writing-tests/stories-in-unit-tests

the unit test should switch some of the props and check the outcome - it should leverage the same mock and infrastructure used in the story already.

showing code coverage would be great -

This should be run in the pipeline on every merge - see existing github action

ricmars commented 6 months ago

https://github.com/pegasystems/constellation-ui-gallery/pull/28