@@ -122,33 +122,31 @@ class AvaFiles {
122
122
this . files = files ;
123
123
this . sources = options . sources || [ ] ;
124
124
this . cwd = options . cwd || process . cwd ( ) ;
125
+ this . globCaches = {
126
+ cache : Object . create ( null ) ,
127
+ statCache : Object . create ( null ) ,
128
+ realpathCache : Object . create ( null ) ,
129
+ symlinks : Object . create ( null )
130
+ } ;
125
131
126
132
autoBind ( this ) ;
127
133
}
128
134
129
135
findTestFiles ( ) {
130
- return handlePaths ( this . files , this . excludePatterns , {
136
+ return handlePaths ( this . files , this . excludePatterns , Object . assign ( {
131
137
cwd : this . cwd ,
132
- cache : Object . create ( null ) ,
133
- statCache : Object . create ( null ) ,
134
- realpathCache : Object . create ( null ) ,
135
- symlinks : Object . create ( null ) ,
136
138
expandDirectories : false ,
137
139
nodir : false
138
- } ) ;
140
+ } , this . globCaches ) ) ;
139
141
}
140
142
141
143
findTestHelpers ( ) {
142
- return handlePaths ( defaultHelperPatterns ( ) , [ '!**/node_modules/**' ] , {
144
+ return handlePaths ( defaultHelperPatterns ( ) , [ '!**/node_modules/**' ] , Object . assign ( {
143
145
cwd : this . cwd ,
144
146
includeUnderscoredFiles : true ,
145
- cache : Object . create ( null ) ,
146
- statCache : Object . create ( null ) ,
147
- realpathCache : Object . create ( null ) ,
148
- symlinks : Object . create ( null ) ,
149
147
expandDirectories : false ,
150
148
nodir : false
151
- } ) ;
149
+ } , this . globCaches ) ) ;
152
150
}
153
151
154
152
isSource ( filePath ) {
0 commit comments