Closed mboughaba closed 9 years ago
after investigating the code, I figure out that we could simply add "test" in order to ignore everything under the "test" directory.
// Ignore node_modules by default, along with ignore arg
ignorePatterns = ['node_modules'];
if (program.ignore) {
ignorePatterns.push(program.ignore);
}
so I could simply set my .jsinspect as
{
"ignore": "test"
}
Glad it worked! :)
Hi, Is there anyway to ignore files based on a path. I usually have my tests under test directory, it would be great if I can do something like this in .jsinspectrc