I've seen some people use the command npm t when running tests. Is this command any different to running npm run test?
TL;DR there is no difference.
It's just a shortcut for npm tests which run the test command in the package.json file. npm run test performs the same action in this case.
Following on from Andy Ray's comment, the documentation states that t is an alias for test.
npm help t
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With