Specify jest test files directory
Add configuration to your package.json.
"jest": {
"testMatch": ["**/laratest/**/*.test.js"]
}
https://jestjs.io/docs/configuration#testmatch-arraystring
Add the directory name as an argument
scripts:{
"test": "jest --verbose ./my-directory"
}