Skip to content

.tip

· one of the small things

Run the tests that touch what you changed, then everything in CI

Running the full suite on every save is why people stop running tests at all.

vitest --changed        # tests affected by uncommitted changes
vitest --changed main   # affected since main

The test runner walks the import graph to find what depends on the changed files. CI still runs everything, while your local loop runs the relevant slice in seconds.

testingdeveloper-experience