Description
Currently, when pushing to a remote repository, we trigger a Git hook which runs pre-push. If a test or benchmark file is included in the list of changed files, we run those files. This is useful, as it verifies that changes have not led to test regressions.
However, if we change a source file (e.g., lib/main.js
) without changing test files, we only run linting. This can be fine, so long as the source file contains sufficient doctests to cover most behavior. This is rarely the case, however, and it would be useful to update our pre-push hook to support running unit tests whenever the source files of a package have been updated.
Ref: https://github.com/stdlib-js/todo/issues/2157
Time estimate without AI: 3hrs
Time estimate with AI: 1-2hrs