File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,9 @@ export default {
262
262
}
263
263
}
264
264
}` ;
265
- const data = await documentation . build ( [ { source : documentationSource } ] , { } ) ;
265
+ const data = await documentation . build ( [ { source : documentationSource } ] , {
266
+ shallow : true
267
+ } ) ;
266
268
normalize ( data ) ;
267
269
expect ( data ) . toMatchSnapshot ( ) ;
268
270
} ) ;
Original file line number Diff line number Diff line change @@ -105,10 +105,11 @@ function buildInternal(inputsAndConfig) {
105
105
sourceFile . source = fs . readFileSync ( sourceFile . file , 'utf8' ) ;
106
106
}
107
107
108
- if (
109
- typeof sourceFile . file === 'string' &&
110
- path . extname ( sourceFile . file ) === '.vue'
111
- ) {
108
+ if ( ! sourceFile . file ) {
109
+ sourceFile . file = '' ;
110
+ }
111
+
112
+ if ( path . extname ( sourceFile . file ) === '.vue' ) {
112
113
return parseVueScript ( sourceFile , config ) . map ( buildPipeline ) ;
113
114
}
114
115
return parseJavaScript ( sourceFile , config ) . map ( buildPipeline ) ;
You can’t perform that action at this time.
0 commit comments