diff --git a/test/fixtures/es-module-loaders/mock.mjs b/test/fixtures/es-module-loaders/mock.mjs index 5d857bbff4a72a..9e76868d5c56e1 100644 --- a/test/fixtures/es-module-loaders/mock.mjs +++ b/test/fixtures/es-module-loaders/mock.mjs @@ -5,7 +5,7 @@ import { MessageChannel } from 'node:worker_threads'; const { port1, port2 } = new MessageChannel(); -register(fixtures.fileURL('es-module-loaders/mock-loader.mjs'), { +register('./mock-loader.mjs', import.meta.url, { data: { port: port2, mainImportURL: import.meta.url,