This PR demonstrates how we can add Unit tests to the project that can be executed with yarn test. Tests need to be placed in a tests directory in either the klighd-core or klighd-interactive package.
By having a testing infrastructure in place we might encourage more test-driven development in the future.
I've included a few tests already as examples to show how and where tests can be written.
This PR demonstrates how we can add Unit tests to the project that can be executed with
yarn test
. Tests need to be placed in a tests directory in either the klighd-core or klighd-interactive package.By having a testing infrastructure in place we might encourage more test-driven development in the future.
I've included a few tests already as examples to show how and where tests can be written.