Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

test: point the ts loader fixture at the js file it documents (#6366)

Mostafa Nazari262bd95840e2
diff --git a/test/integration/fixtures/esm/loader-with-module-not-found/loader-that-recognizes-ts.js b/test/integration/fixtures/esm/loader-with-module-not-found/loader-that-recognizes-ts.js
index 5ea8da93..97bd0f63 100644
--- a/test/integration/fixtures/esm/loader-with-module-not-found/loader-that-recognizes-ts.js
+++ b/test/integration/fixtures/esm/loader-with-module-not-found/loader-that-recognizes-ts.js
@@ -9,7 +9,7 @@
*/
export async function resolve(specifier, context, defaultResolve) {
return await defaultResolve(
- specifier.replace('.ts', '.mjs'),
+ specifier.replace('.ts', '.js'),
context,
defaultResolve,
);