@@ -361,7 +361,13 @@ describe('copyConfigKeyEntry', () => {
361361 const outDir = joinPath ( tmpDir , 'out' )
362362 await mkdir ( outDir )
363363 const context = makeContext ( { assets : '' } )
364- const promise = copyConfigKeyEntry ( { key : 'assets' , baseDir : tmpDir , outputDir : outDir , context} )
364+ const promise = copyConfigKeyEntry ( {
365+ key : 'assets' ,
366+ baseDir : tmpDir ,
367+ outputDir : outDir ,
368+ context,
369+ appDirectory : tmpDir ,
370+ } )
365371 await expect ( promise ) . rejects . toThrow ( AbortError )
366372 await expect ( promise ) . rejects . toThrow ( `'assets' can't be empty.` )
367373 } )
@@ -372,13 +378,19 @@ describe('copyConfigKeyEntry', () => {
372378 const outDir = joinPath ( tmpDir , 'out' )
373379 await mkdir ( outDir )
374380 const context = makeContext ( { assets : ' ' } )
375- const promise = copyConfigKeyEntry ( { key : 'assets' , baseDir : tmpDir , outputDir : outDir , context} )
381+ const promise = copyConfigKeyEntry ( {
382+ key : 'assets' ,
383+ baseDir : tmpDir ,
384+ outputDir : outDir ,
385+ context,
386+ appDirectory : tmpDir ,
387+ } )
376388 await expect ( promise ) . rejects . toThrow ( AbortError )
377389 await expect ( promise ) . rejects . toThrow ( `'assets' can't be empty.` )
378390 } )
379391 } )
380392
381- test ( 'throws with the field name only, not the full configKey, when the key is nested' , async ( ) => {
393+ test ( 'throws with the full configKey when the key is nested' , async ( ) => {
382394 await inTemporaryDirectory ( async ( tmpDir ) => {
383395 const outDir = joinPath ( tmpDir , 'out' )
384396 await mkdir ( outDir )
@@ -388,9 +400,10 @@ describe('copyConfigKeyEntry', () => {
388400 baseDir : tmpDir ,
389401 outputDir : outDir ,
390402 context,
403+ appDirectory : tmpDir ,
391404 } )
392405 await expect ( promise ) . rejects . toThrow ( AbortError )
393- await expect ( promise ) . rejects . toThrow ( `'assets' can't be empty.` )
406+ await expect ( promise ) . rejects . toThrow ( `'extension_points[]. assets' can't be empty.` )
394407 } )
395408 } )
396409 } )
0 commit comments