@@ -48,7 +48,7 @@ test('returns cached states before resolving the parser', async () => {
4848 await withTempProject ( async ( rootPath ) => {
4949 const source = 'const value=1' ;
5050 const filePath = writeProjectFile ( rootPath , 'example.ts' , source ) ;
51- const extensionlessPath = writeProjectFile ( rootPath , 'script' , source ) ;
51+ const noExtensionPath = writeProjectFile ( rootPath , 'script' , source ) ;
5252 const missingPath = path . join ( rootPath , 'missing.unknown' ) ;
5353 const contentHash = sha256 ( source ) ;
5454 const optionsHash = 'options' ;
@@ -57,8 +57,8 @@ test('returns cached states before resolving the parser', async () => {
5757 [ [ contentHash , optionsHash , 'clean' ] , filePath , false , 'unchanged' ] ,
5858 [ [ contentHash , optionsHash , 'dirty' ] , filePath , false , 'changed' ] ,
5959 [ [ contentHash , optionsHash , 'clean' ] , filePath , true , 'unchanged' ] ,
60- [ [ contentHash , optionsHash , 'unsupported' ] , extensionlessPath , false , 'unsupported' ] ,
61- [ [ contentHash , optionsHash , 'unsupported' ] , extensionlessPath , true , 'unsupported' ] ,
60+ [ [ contentHash , optionsHash , 'unsupported' ] , noExtensionPath , false , 'unsupported' ] ,
61+ [ [ contentHash , optionsHash , 'unsupported' ] , noExtensionPath , true , 'unsupported' ] ,
6262 [ [ null , optionsHash , 'unsupported' ] , missingPath , false , 'unsupported' ] ,
6363 [ [ null , optionsHash , 'unsupported' ] , missingPath , true , 'unsupported' ] ,
6464 ] as const ) {
@@ -81,7 +81,7 @@ test('returns cached states before resolving the parser', async () => {
8181 } ) ;
8282} ) ;
8383
84- test ( 'does not trust path-only unsupported entries for extensionless files' , async ( ) => {
84+ test ( 'does not trust path-only unsupported entries for files without extensions ' , async ( ) => {
8585 await withTempProject ( async ( rootPath ) => {
8686 const filePath = writeProjectFile ( rootPath , 'script' , '#!/usr/bin/env node\nconst value=1' ) ;
8787
0 commit comments