Adding to this for people like me who were searching for a way to run a single spec in Angular and found this SO.
According to the latest Angular docs (v9.0.6 at time of writing), the ng test
command has an --include
option where you can specify a directory of *.spec.(ts|tsx)
files or just a single .spec.(ts|tsx)
file itself.