File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ describe('build:electron', () => {
179
179
fs . existsSync . mockReturnValueOnce ( true )
180
180
await runCommand ( 'build:electron' )
181
181
// css/fonts folder was created
182
- expect ( fs . mkdirSync . mock . calls [ 0 ] [ 0 ] ) . toBe (
182
+ expect ( fs . ensureDirSync . mock . calls [ 0 ] [ 0 ] ) . toBe (
183
183
'projectPath/dist_electron/bundled/css/fonts'
184
184
)
185
185
// fonts was copied to css/fonts
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ module.exports = (api, options) => {
118
118
await api . service . run ( 'build' , vueArgs )
119
119
// Copy fonts to css/fonts. Fixes some issues with static font imports
120
120
if ( fs . existsSync ( api . resolve ( outputDir + '/bundled/fonts' ) ) ) {
121
- fs . mkdirSync ( api . resolve ( outputDir + '/bundled/css/fonts' ) )
121
+ fs . ensureDirSync ( api . resolve ( outputDir + '/bundled/css/fonts' ) )
122
122
fs . copySync (
123
123
api . resolve ( outputDir + '/bundled/fonts' ) ,
124
124
api . resolve ( outputDir + '/bundled/css/fonts' )
You can’t perform that action at this time.
0 commit comments