File | Settings | Appearance and Behavior | Scopes for Windows and Linux
WebStorm | Preferences | Appearance and Behavior | Scopes for macOS
- Click on + button
- Set :
- Name : Without Tests
- Pattern for app directory :
file[native-app]:app//*&&!file[native-app]:app/*/__tests__//*
- Pattern for app + business directory :
file[native-app]:app//*&&!file[native-app]:app/*/__tests__//*||file[native-app]:business//*&&!file[native-app]:business/*/__tests__//*