@@ -316,12 +316,18 @@ describe('Basic end-to-end Workflow', function () {
316316 it ( 'moves all files that live inside `assets` into `dist`' , function ( ) {
317317 this . timeout ( 420000 ) ;
318318
319- const tmpFile = path . join ( process . cwd ( ) , 'src' , 'assets' , 'test.abc' ) ;
320- const tmpFileLocation = path . join ( process . cwd ( ) , 'dist' , 'assets' , 'test.abc' ) ;
321- fs . writeFileSync ( tmpFile , 'hello world' ) ;
319+ const dotFile = path . join ( process . cwd ( ) , 'src' , 'assets' , '.file' ) ;
320+ const distDotFile = path . join ( process . cwd ( ) , 'dist' , 'assets' , '.file' ) ;
321+ fs . writeFileSync ( dotFile , '' ) ;
322+ const testFile = path . join ( process . cwd ( ) , 'src' , 'assets' , 'test.abc' ) ;
323+ const distTestFile = path . join ( process . cwd ( ) , 'dist' , 'assets' , 'test.abc' ) ;
324+ fs . writeFileSync ( testFile , 'hello world' ) ;
325+ const distDotGitIgnore = path . join ( process . cwd ( ) , 'dist' , 'assets' , '.gitignore' ) ;
322326
323327 sh . exec ( `${ ngBin } build` ) ;
324- expect ( existsSync ( tmpFileLocation ) ) . to . be . equal ( true ) ;
328+ expect ( existsSync ( distDotFile ) ) . to . be . equal ( true ) ;
329+ expect ( existsSync ( distTestFile ) ) . to . be . equal ( true ) ;
330+ expect ( existsSync ( distDotGitIgnore ) ) . to . be . equal ( false ) ;
325331 } ) ;
326332
327333 // Mobile mode doesn't have styles
0 commit comments