Skip to content

Instantly share code, notes, and snippets.

@fugudesign
Last active March 12, 2019 11:39
Show Gist options
  • Save fugudesign/b68921497b07bee05ee5c2f9ae42d40a to your computer and use it in GitHub Desktop.
Save fugudesign/b68921497b07bee05ee5c2f9ae42d40a to your computer and use it in GitHub Desktop.
Recursively exclude __tests__ folders from Webstorm

Cdiscount exclude tests from searches in Webstorm

Open scopes preferences

File | Settings | Appearance and Behavior | Scopes for Windows and Linux

WebStorm | Preferences | Appearance and Behavior | Scopes for macOS

Add a custom scope

  • 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__//*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment