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 c9f8fb7 commit d2f2ec0Copy full SHA for d2f2ec0
1 file changed
test/es-module/test-esm-initialization.mjs
@@ -1,8 +1,7 @@
1
import '../common/index.mjs';
2
-import fixtures from '../common/fixtures.js';
+import * as fixtures from '../common/fixtures.mjs';
3
import assert from 'node:assert';
4
import { spawnSync } from 'node:child_process';
5
-import { fileURLToPath } from 'node:url';
6
7
8
{ // Verify unadulterated source is loaded when there are no loaders
@@ -12,7 +11,7 @@ import { fileURLToPath } from 'node:url';
12
11
'--loader',
13
fixtures.fileURL('es-module-loaders', 'loader-resolve-passthru.mjs'),
14
'--no-warnings',
15
- fileURLToPath(fixtures.fileURL('es-modules', 'runmain.mjs')),
+ fixtures.path('es-modules', 'runmain.mjs'),
16
],
17
{ encoding: 'utf8' },
18
);
0 commit comments