We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c93377f commit 5233238Copy full SHA for 5233238
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(fixtures.fileURL('no-such-file.cjs'));
+const { default: noSuchFileSource } = await import('file:///no-such-file.cjs');
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