summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/workers/error_event.ts
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/workers/error_event.ts
parent73504d76b29eddc1a563e74bb379682e23347b3c (diff)
chore: use import.meta.resolve() in tests (#15256)
Diffstat (limited to 'cli/tests/testdata/workers/error_event.ts')
-rw-r--r--cli/tests/testdata/workers/error_event.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tests/testdata/workers/error_event.ts b/cli/tests/testdata/workers/error_event.ts
index f3046178a..70e7728ab 100644
--- a/cli/tests/testdata/workers/error_event.ts
+++ b/cli/tests/testdata/workers/error_event.ts
@@ -1,4 +1,4 @@
-const worker = new Worker(new URL("error.ts", import.meta.url).href, {
+const worker = new Worker(import.meta.resolve("./error.ts"), {
type: "module",
});
worker.addEventListener("error", (e) => {