We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5233238 commit 4dcbec5Copy full SHA for 4dcbec5
test/es-module/test-esm-loader-with-source.mjs
@@ -4,7 +4,7 @@ import * as fixtures from '../common/fixtures.mjs';
4
import assert from 'assert';
5
6
const { default: existingFileSource } = await import(fixtures.fileURL('es-modules', 'cjs-file.cjs'));
7
-const { default: noSuchFileSource } = await import('file:///no-such-file.cjs');
+const { default: noSuchFileSource } = await import(new URL('./no-such-file.cjs', import.meta.url));
8
9
assert.strictEqual(existingFileSource, 'no .cjs file was read to get this source');
10
assert.strictEqual(noSuchFileSource, 'no .cjs file was read to get this source');
0 commit comments