From f248050cb467eaed8d65428b8808254e26797cc5 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Thu, 25 Jul 2024 10:26:54 +1000 Subject: chore: use `@std` prefix for internal module specifiers (#24543) This change aims to replace all relative import specifiers targeted at `tests/util/std` with mapped ones (using a `deno.json` file). Towards updating the `std` git submodule. --- tests/specs/future/runtime_api/__test__.jsonc | 4 ++-- tests/specs/future/runtime_api/worker.js | 2 +- tests/specs/future/unstable_flags/__test__.jsonc | 4 ++-- tests/specs/future/unstable_flags/worker.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/specs/future') diff --git a/tests/specs/future/runtime_api/__test__.jsonc b/tests/specs/future/runtime_api/__test__.jsonc index 7aceff5bf..c1b3b9b17 100644 --- a/tests/specs/future/runtime_api/__test__.jsonc +++ b/tests/specs/future/runtime_api/__test__.jsonc @@ -1,14 +1,14 @@ { "steps": [ { - "args": "run -A --unstable-fs main.js", + "args": "run -A --unstable-fs --config ../../../config/deno.json main.js", "output": "main.out", "envs": { "DENO_FUTURE": "1" } }, { - "args": "run -A --unstable-fs worker.js", + "args": "run -A --unstable-fs --config ../../../config/deno.json worker.js", "output": "main.out", "envs": { "DENO_FUTURE": "1" diff --git a/tests/specs/future/runtime_api/worker.js b/tests/specs/future/runtime_api/worker.js index 64b8e07b8..36d35b7b2 100644 --- a/tests/specs/future/runtime_api/worker.js +++ b/tests/specs/future/runtime_api/worker.js @@ -1,4 +1,4 @@ -import { delay } from "../../../util/std/async/delay.ts"; +import { delay } from "@std/async/delay.ts"; const worker = new Worker(import.meta.resolve("./main.js"), { type: "module" }); await delay(1_000); diff --git a/tests/specs/future/unstable_flags/__test__.jsonc b/tests/specs/future/unstable_flags/__test__.jsonc index d3d02e029..008ba1213 100644 --- a/tests/specs/future/unstable_flags/__test__.jsonc +++ b/tests/specs/future/unstable_flags/__test__.jsonc @@ -2,7 +2,7 @@ "steps": [ { // Notice `--unstable-*` flags are not needed anymore - "args": "run -A main.js", + "args": "run -A --config ../../../config/deno.json main.js", "output": "main.out", "envs": { "DENO_FUTURE": "1" @@ -10,7 +10,7 @@ }, { // Notice `--unstable-*` flags are not needed anymore - "args": "run -A worker.js", + "args": "run -A --config ../../../config/deno.json worker.js", "output": "main.out", "envs": { "DENO_FUTURE": "1" diff --git a/tests/specs/future/unstable_flags/worker.js b/tests/specs/future/unstable_flags/worker.js index 64b8e07b8..36d35b7b2 100644 --- a/tests/specs/future/unstable_flags/worker.js +++ b/tests/specs/future/unstable_flags/worker.js @@ -1,4 +1,4 @@ -import { delay } from "../../../util/std/async/delay.ts"; +import { delay } from "@std/async/delay.ts"; const worker = new Worker(import.meta.resolve("./main.js"), { type: "module" }); await delay(1_000); -- cgit v1.2.3