1- const exists = require ( 'path-exists ' ) ;
1+ const fs = require ( 'fs-extra ' ) ;
22const getUniqueProjectPath = require ( './utils/getUniqueProjectPath' ) ;
33const path = require ( 'path' ) ;
44const spawnCmd = require ( './utils/spawnCmd' ) ;
@@ -25,23 +25,23 @@ tap.test('Init and build ->', (t) =>
2525 `${ projectRoot } /patternlab-config.json` ,
2626 ] ) ;
2727 t . ok (
28- exists . sync ( path . resolve ( projectRoot , 'public' ) ) ,
28+ fs . existsSync ( path . resolve ( projectRoot , 'public' ) ) ,
2929 'should build all files into public dir'
3030 ) ;
3131 t . ok (
32- exists . sync ( path . resolve ( projectRoot , 'public' , 'annotations' ) ) ,
32+ fs . existsSync ( path . resolve ( projectRoot , 'public' , 'annotations' ) ) ,
3333 'with an annotations dir'
3434 ) ;
3535 t . ok (
36- exists . sync ( path . resolve ( projectRoot , 'public' , 'css' ) ) ,
36+ fs . existsSync ( path . resolve ( projectRoot , 'public' , 'css' ) ) ,
3737 'with a css dir'
3838 ) ;
3939 t . ok (
40- exists . sync ( path . resolve ( projectRoot , 'public' , 'images' ) ) ,
40+ fs . existsSync ( path . resolve ( projectRoot , 'public' , 'images' ) ) ,
4141 'with a images dir'
4242 ) ;
4343 t . ok (
44- exists . sync ( path . resolve ( projectRoot , 'public' , 'styleguide' ) ) ,
44+ fs . existsSync ( path . resolve ( projectRoot , 'public' , 'styleguide' ) ) ,
4545 'with a styleguide dir'
4646 ) ;
4747 t . end ( ) ;
0 commit comments