Skip to content

Commit e68a5fa

Browse files
committed
test: fix test-esm-loader-hooks when path contains %
1 parent c237eab commit e68a5fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/es-module/test-esm-loader-hooks.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ describe('Loader hooks', { concurrency: !process.env.TEST_PARALLEL }, () => {
822822
const { code, signal, stdout, stderr } = await spawnPromisified(execPath, [
823823
'--no-warnings',
824824
'--experimental-loader',
825-
`data:text/javascript,const fixtures=${JSON.stringify(fixtures.path('empty.js'))};export ${
825+
`data:text/javascript,const fixtures=${encodeURI(JSON.stringify(fixtures.path('empty.js')))};export ${
826826
encodeURIComponent(function resolve(s, c, n) {
827827
if (s.endsWith('entry-point')) {
828828
return {

0 commit comments

Comments
 (0)