@@ -52,7 +52,7 @@ function mapSourceToTests(filepath) {
5252
5353 // Map specific files to their test files
5454 const basename = path . basename ( normalized , path . extname ( normalized ) )
55- const testFile = `test/${ basename } .test.ts `
55+ const testFile = `test/${ basename } .test.mts `
5656
5757 // Check if corresponding test exists
5858 if ( existsSync ( path . join ( rootPath , testFile ) ) ) {
@@ -61,16 +61,16 @@ function mapSourceToTests(filepath) {
6161
6262 // Special mappings
6363 if ( normalized . includes ( 'src/package-url.ts' ) ) {
64- return [ 'test/package-url.test.ts ' , 'test/integration.test.ts ' ]
64+ return [ 'test/package-url.test.mts ' , 'test/integration.test.mts ' ]
6565 }
6666 if ( normalized . includes ( 'src/package-url-builder.ts' ) ) {
67- return [ 'test/package-url-builder.test.ts ' , 'test/integration.test.ts ' ]
67+ return [ 'test/package-url-builder.test.mts ' , 'test/integration.test.mts ' ]
6868 }
6969 if ( normalized . includes ( 'src/url-converter.ts' ) ) {
70- return [ 'test/url-converter.test.ts ' ]
70+ return [ 'test/url-converter.test.mts ' ]
7171 }
7272 if ( normalized . includes ( 'src/result.ts' ) ) {
73- return [ 'test/result.test.ts ' ]
73+ return [ 'test/result.test.mts ' ]
7474 }
7575
7676 // If no specific mapping, run all tests to be safe
@@ -155,11 +155,11 @@ export function getTestsToRun(options = {}) {
155155 // Data changes run integration tests
156156 if ( normalized . startsWith ( 'data/' ) ) {
157157 // Skip deleted files.
158- if ( existsSync ( path . join ( rootPath , 'test/integration.test.ts ' ) ) ) {
159- testFiles . add ( 'test/integration.test.ts ' )
158+ if ( existsSync ( path . join ( rootPath , 'test/integration.test.mts ' ) ) ) {
159+ testFiles . add ( 'test/integration.test.mts ' )
160160 }
161- if ( existsSync ( path . join ( rootPath , 'test/purl-types.test.ts ' ) ) ) {
162- testFiles . add ( 'test/purl-types.test.ts ' )
161+ if ( existsSync ( path . join ( rootPath , 'test/purl-types.test.mts ' ) ) ) {
162+ testFiles . add ( 'test/purl-types.test.mts ' )
163163 }
164164 }
165165 }
0 commit comments