diff options
| author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-07-25 10:26:54 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-25 10:26:54 +1000 |
| commit | f248050cb467eaed8d65428b8808254e26797cc5 (patch) | |
| tree | 7e43f16a8754a6313f65f0f65c037fdae2ce986f /tests/specs | |
| parent | 795ed23b356dc044cfb497a6189d588604a6c335 (diff) | |
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.
Diffstat (limited to 'tests/specs')
| -rw-r--r-- | tests/specs/future/runtime_api/__test__.jsonc | 4 | ||||
| -rw-r--r-- | tests/specs/future/runtime_api/worker.js | 2 | ||||
| -rw-r--r-- | tests/specs/future/unstable_flags/__test__.jsonc | 4 | ||||
| -rw-r--r-- | tests/specs/future/unstable_flags/worker.js | 2 | ||||
| -rw-r--r-- | tests/specs/run/045_proxy/__test__.jsonc | 2 | ||||
| -rw-r--r-- | tests/specs/run/045_proxy/proxy_test.ts | 2 | ||||
| -rw-r--r-- | tests/specs/test/clean_flag/__test__.jsonc | 2 | ||||
| -rw-r--r-- | tests/specs/test/clean_flag/main.js | 2 | ||||
| -rw-r--r-- | tests/specs/test/clean_flag/sum_test.js | 2 |
9 files changed, 11 insertions, 11 deletions
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); diff --git a/tests/specs/run/045_proxy/__test__.jsonc b/tests/specs/run/045_proxy/__test__.jsonc index d4fb7f60c..c448d3c35 100644 --- a/tests/specs/run/045_proxy/__test__.jsonc +++ b/tests/specs/run/045_proxy/__test__.jsonc @@ -1,4 +1,4 @@ { - "args": "run -L debug --allow-net --allow-env --allow-run --allow-read --reload --quiet proxy_test.ts", + "args": "run -L debug --allow-net --allow-env --allow-run --allow-read --reload --quiet --config ../../../config/deno.json proxy_test.ts", "output": "proxy_test.ts.out" } diff --git a/tests/specs/run/045_proxy/proxy_test.ts b/tests/specs/run/045_proxy/proxy_test.ts index 582b0e638..d04356930 100644 --- a/tests/specs/run/045_proxy/proxy_test.ts +++ b/tests/specs/run/045_proxy/proxy_test.ts @@ -1,5 +1,5 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. -import { Server } from "../../../util/std/http/server.ts"; +import { Server } from "@std/http/server.ts"; const addr = Deno.args[1] || "localhost:4555"; diff --git a/tests/specs/test/clean_flag/__test__.jsonc b/tests/specs/test/clean_flag/__test__.jsonc index 65ad097b1..b94612d36 100644 --- a/tests/specs/test/clean_flag/__test__.jsonc +++ b/tests/specs/test/clean_flag/__test__.jsonc @@ -1,5 +1,5 @@ { - "args": "run -A main.js", + "args": "run -A --config ../../../config/deno.json main.js", "exitCode": 0, "output": "main.out" } diff --git a/tests/specs/test/clean_flag/main.js b/tests/specs/test/clean_flag/main.js index 215c2229c..9ccdea1ce 100644 --- a/tests/specs/test/clean_flag/main.js +++ b/tests/specs/test/clean_flag/main.js @@ -1,4 +1,4 @@ -import { emptyDir } from "../../../util/std/fs/empty_dir.ts"; +import { emptyDir } from "@std/fs/empty_dir.ts"; const DIR = "./coverage"; const COMMAND = new Deno.Command(Deno.execPath(), { diff --git a/tests/specs/test/clean_flag/sum_test.js b/tests/specs/test/clean_flag/sum_test.js index 3443fcbd3..eab3c53ad 100644 --- a/tests/specs/test/clean_flag/sum_test.js +++ b/tests/specs/test/clean_flag/sum_test.js @@ -1,5 +1,5 @@ import { sum } from "./sum.js"; -import { assertEquals } from "../../../util/std/assert/assert_equals.ts"; +import { assertEquals } from "@std/assert/assert_equals.ts"; Deno.test("sum()", () => { assertEquals(sum(1, 2), 3); |
