diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-07-20 16:56:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-20 16:56:53 +0200 |
commit | d17b3906bf3a0871d54e9fdc009891e378dc45f5 (patch) | |
tree | 446551bf2f53908d01a4a9b6d35905065369068b /cli/tests/testdata/workers/nested_worker.js | |
parent | 73504d76b29eddc1a563e74bb379682e23347b3c (diff) |
chore: use import.meta.resolve() in tests (#15256)
Diffstat (limited to 'cli/tests/testdata/workers/nested_worker.js')
-rw-r--r-- | cli/tests/testdata/workers/nested_worker.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tests/testdata/workers/nested_worker.js b/cli/tests/testdata/workers/nested_worker.js index 953bf3bfe..2273cdbfa 100644 --- a/cli/tests/testdata/workers/nested_worker.js +++ b/cli/tests/testdata/workers/nested_worker.js @@ -1,6 +1,6 @@ // Specifier should be resolved relative to current file const jsWorker = new Worker( - new URL("sibling_worker.js", import.meta.url).href, + import.meta.resolve("./sibling_worker.js"), { type: "module", name: "sibling" }, ); |