I am using the test framework ava and I have two ways of setting a timeout. Either through command-line via --timeout and also by code via t.timeout(..)
--timeout