2
0
Эх сурвалжийг харах

explicitly blacklist some test dirs

Adam Shaw 8 жил өмнө
parent
commit
3c74b80c97
1 өөрчлөгдсөн 3 нэмэгдсэн , 1 устгасан
  1. 3 1
      tests/index.js

+ 3 - 1
tests/index.js

@@ -5,7 +5,9 @@ require('./hacks')
 var context = require.context(
   '.',
   true, // recursive?
-  /[^/]+\/[^/]+\.(js|ts)$/ // inside subdirectory
+  // inside a subdirectory that is not blacklisted
+  // paths start with a "./"
+  /^\.\/(?!(manual|examples)\/)([^\/]+)\/(.*)\.(js|ts)$/
 )
 
 context.keys().forEach(context)