summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/compat/import_cjs_from_esm
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-07-20 16:56:53 +0200
committerGitHub <noreply@github.com>2022-07-20 16:56:53 +0200
commitd17b3906bf3a0871d54e9fdc009891e378dc45f5 (patch)
tree446551bf2f53908d01a4a9b6d35905065369068b /cli/tests/testdata/compat/import_cjs_from_esm
parent73504d76b29eddc1a563e74bb379682e23347b3c (diff)
chore: use import.meta.resolve() in tests (#15256)
Diffstat (limited to 'cli/tests/testdata/compat/import_cjs_from_esm')
-rw-r--r--cli/tests/testdata/compat/import_cjs_from_esm/main_dynamic.mjs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tests/testdata/compat/import_cjs_from_esm/main_dynamic.mjs b/cli/tests/testdata/compat/import_cjs_from_esm/main_dynamic.mjs
index e94af67a4..b94033268 100644
--- a/cli/tests/testdata/compat/import_cjs_from_esm/main_dynamic.mjs
+++ b/cli/tests/testdata/compat/import_cjs_from_esm/main_dynamic.mjs
@@ -1,2 +1,2 @@
-const url = new URL("./imported.js", import.meta.url);
-await import(url.href);
+const url = import.meta.resolve("./imported.js");
+await import(url);