File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const constant = konst => () => konst;
1212
1313const printTree = ( nodes , indentLevel = 0 ) => {
1414 const indent = join ( times ( indentLevel , constant ( ' ' ) ) ) ;
15- return join ( nodes . map ( node =>
15+ return join ( nodes . filter ( node => node . name [ 0 ] !== '.' ) . map ( node =>
1616 `${ indent } ${ node . name } \n${ node . type === 'directory' ? printTree ( node . children , indentLevel + 1 ) : '' } `
1717 ) ) ;
1818} ;
@@ -26,10 +26,13 @@ describe('fixtures', () => {
2626 }
2727
2828 it ( fixtureDir , async ( ) => {
29+ const prevDir = process . cwd ( ) ;
30+ process . chdir ( path . resolve ( fixturePath ) ) ;
2931 const output = await microbundle ( {
3032 cwd : path . resolve ( fixturePath ) ,
3133 formats : 'es,cjs,umd'
3234 } ) ;
35+ process . chdir ( prevDir ) ;
3336
3437 const printedDir = printTree ( [ dirTree ( fixturePath ) ] ) ;
3538
You can’t perform that action at this time.
0 commit comments