Recently I’ve started working on a new project and was curious how many javascript tests there were in the app. With git this is as simple as this:

git ls-files test '*.js' | wc -l

This protip has been written in 255 seconds