vitest-touched
Click a file in this small made-up project to mark it changed, the way a pull request would, and see which tests run. The choice comes from the package's real planning code. Source on GitHub.
Other files:
Things to notice
-
Change
money.tsand every test that imports it runs, even the ones that only reach it through other files. -
styles.test.tsruns every time. It readsstyles.cssfrom disk instead of importing it, so the import graph can't see what it depends on. - Change
package.jsonorvitest.config.tsand every test runs. -
Change
README.mdand nothing extra runs. No test imports it, and it isn't a file every test depends on. - Clear everything and only the test that reads the disk is left.