@@ -20,8 +20,8 @@ test('returns cached states before resolving the parser', async () => {
2020 [ [ contentHash , optionsHash , 'clean' ] , filePath , true , 'unchanged' ] ,
2121 [ [ contentHash , optionsHash , 'unsupported' ] , noExtensionPath , false , 'unsupported' ] ,
2222 [ [ contentHash , optionsHash , 'unsupported' ] , noExtensionPath , true , 'unsupported' ] ,
23- [ [ null , optionsHash , 'unsupported' ] , missingPath , false , 'unsupported' ] ,
24- [ [ null , optionsHash , 'unsupported' ] , missingPath , true , 'unsupported' ] ,
23+ [ [ '' , optionsHash , 'unsupported' ] , missingPath , false , 'unsupported' ] ,
24+ [ [ '' , optionsHash , 'unsupported' ] , missingPath , true , 'unsupported' ] ,
2525 ] as const ) {
2626 await expect (
2727 formatFile ( {
@@ -54,7 +54,7 @@ test('does not trust path-only unsupported entries for files without extensions'
5454 } ,
5555 shouldWrite : false ,
5656 cache : {
57- entry : [ null , 'options' , 'unsupported' ] ,
57+ entry : [ '' , 'options' , 'unsupported' ] ,
5858 optionsHash : 'options' ,
5959 } ,
6060 } ) ,
@@ -81,7 +81,7 @@ test('resolves parser support before reading on a cache miss', async () => {
8181 } ) ,
8282 ) . resolves . toEqual ( {
8383 status : 'unsupported' ,
84- cacheEntry : [ null , 'options' , 'unsupported' ] ,
84+ cacheEntry : [ '' , 'options' , 'unsupported' ] ,
8585 } ) ;
8686 } ) ;
8787} ) ;
0 commit comments