While looking through scripts/check-modules/index.ts, I noticed that the script has over time covered a good number of different suggestions, and ended up fairly complicated for a script.
There are probably some opportunities to refactor the checks to make it easier to continue to add and fix them, but of course that is easier done with some unit tests.
There are a few other automated checks on this repository, but I don't think I saw a unit test framework installed.
Would it make sense to add Vitest, as that is what the main MagicMirror repository is using?
Getting this set up initially with everything properly mocked/prepared would probably be a bit of an undertaking, but once it is in place it could help more safely make future improvements!
This is something I would be interested in working through, I enjoy backfilling tests, but I did not want to just open a PR without a 👍🏼 on a framework or desire for the tests.
While looking through
scripts/check-modules/index.ts, I noticed that the script has over time covered a good number of different suggestions, and ended up fairly complicated for a script.There are probably some opportunities to refactor the checks to make it easier to continue to add and fix them, but of course that is easier done with some unit tests.
There are a few other automated checks on this repository, but I don't think I saw a unit test framework installed.
Would it make sense to add Vitest, as that is what the main MagicMirror repository is using?
Getting this set up initially with everything properly mocked/prepared would probably be a bit of an undertaking, but once it is in place it could help more safely make future improvements!
This is something I would be interested in working through, I enjoy backfilling tests, but I did not want to just open a PR without a 👍🏼 on a framework or desire for the tests.