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/test/clean_flag/__test__.jsonc | 2 +- tests/specs/test/clean_flag/main.js | 2 +- tests/specs/test/clean_flag/sum_test.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/specs/test') 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); -- cgit v1.2.3