File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
packages/hap-toolkit/src/gen-webpack-conf Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -153,11 +153,9 @@ describe('hap-toolkit', () => {
153153 }
154154 } )
155155 expect ( sourceArr . join ( '\n\n' ) ) . toMatchSnapshot ( identifierArr . join ( '\n\n' ) )
156-
157156 const rpks = await lsfiles ( 'dist/*.rpk' , { cwd } )
158- const hasCustom = rpks [ 0 ] . indexOf ( 'dev' ) !== - 1
157+ const hasCustom = rpks . some ( ( item ) => item . indexOf ( 'dev' ) !== - 1 )
159158 expect ( hasCustom ) . toBeTruthy ( )
160-
161159 expect ( json . assets . map ( ( a ) => a . name ) . sort ( ) ) . toMatchSnapshot ( 'assets list' )
162160 const output = stripAnsi ( outputs . join ( '\n' ) )
163161 // TODO expect(wipe(output)).toMatchSnapshot('outputs')
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export function cleanup(BUILD_DIR, DIST_DIR) {
3838 zipfiles . forEach ( function ( file ) {
3939 const curPath = DIST_DIR + '/' + file
4040 if ( fs . statSync ( curPath ) . isFile ( ) ) {
41- fs . unlinkSync ( curPath )
41+ // fs.unlinkSync(curPath)
4242 }
4343 } )
4444 }
You can’t perform that action at this time.
0 commit comments