I created a scope to include just the test folder of my project. Using the Scopes window, I pointed to the test folder and said Include Recursively. The scope regex became:
Looks good, but when I do a search with that scope, it includes files from my node_modules folder. And, presumably because node_modules is excluded in Settings | Directories, node_modules does not appear in the tree so that can select it and say Exclude Recursively. The only way to do it is to manually add this to the regex:
Why make this so difficult? Why isn't node_modules just automatically excluded?