@@ -316,12 +316,18 @@ describe('Basic end-to-end Workflow', function () {
316
316
it ( 'moves all files that live inside `assets` into `dist`' , function ( ) {
317
317
this . timeout ( 420000 ) ;
318
318
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' ) ;
322
326
323
327
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 ) ;
325
331
} ) ;
326
332
327
333
// Mobile mode doesn't have styles
0 commit comments