diff --git a/test/spec-collection.js b/test/spec-collection.js index 99b92b3a..a2cd6de7 100644 --- a/test/spec-collection.js +++ b/test/spec-collection.js @@ -52,7 +52,7 @@ function isValidSpec(file, matcher) { // ...match the matcher matcher.test( path.basename(file) ) && // ...be relevant to the current runtime - file.indexOf(skipPath) === -1; + file.indexOf('/' + skipPath + '/') === -1; } catch (e) { result = false;