@@ -744,19 +744,19 @@ describe('ts-node', function () {
744744
745745 it ( 'correctly filters file extensions from the compiler when allowJs=false and jsx=false' , ( ) => {
746746 const { ignored } = create ( { compilerOptions : { } , skipProject : true } )
747- testIgnored ( ignored , [ '.ts' ] , [ '.js' , '.tsx' , '.jsx' , '.mjs' , '.cjs' , '.xyz' , '' ] )
747+ testIgnored ( ignored , [ '.ts' , '.d.ts' ] , [ '.js' , '.tsx' , '.jsx' , '.mjs' , '.cjs' , '.xyz' , '' ] )
748748 } )
749749 it ( 'correctly filters file extensions from the compiler when allowJs=true and jsx=false' , ( ) => {
750750 const { ignored } = create ( { compilerOptions : { allowJs : true } , skipProject : true } )
751- testIgnored ( ignored , [ '.ts' , '.js' ] , [ '.tsx' , '.jsx' , '.mjs' , '.cjs' , '.xyz' , '' ] )
751+ testIgnored ( ignored , [ '.ts' , '.js' , '.d.ts' ] , [ '.tsx' , '.jsx' , '.mjs' , '.cjs' , '.xyz' , '' ] )
752752 } )
753753 it ( 'correctly filters file extensions from the compiler when allowJs=false and jsx=true' , ( ) => {
754754 const { ignored } = create ( { compilerOptions : { allowJs : false , jsx : 'preserve' } , skipProject : true } )
755- testIgnored ( ignored , [ '.ts' , '.tsx' ] , [ '.js' , '.jsx' , '.mjs' , '.cjs' , '.xyz' , '' ] )
755+ testIgnored ( ignored , [ '.ts' , '.tsx' , '.d.ts' ] , [ '.js' , '.jsx' , '.mjs' , '.cjs' , '.xyz' , '' ] )
756756 } )
757757 it ( 'correctly filters file extensions from the compiler when allowJs=true and jsx=true' , ( ) => {
758758 const { ignored } = create ( { compilerOptions : { allowJs : true , jsx : 'preserve' } , skipProject : true } )
759- testIgnored ( ignored , [ '.ts' , '.tsx' , '.js' , '.jsx' ] , [ '.mjs' , '.cjs' , '.xyz' , '' ] )
759+ testIgnored ( ignored , [ '.ts' , '.tsx' , '.js' , '.jsx' , '.d.ts' ] , [ '.mjs' , '.cjs' , '.xyz' , '' ] )
760760 } )
761761 } )
762762
0 commit comments