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/testdata/run/import_meta/importmap.json | 2 ++ tests/testdata/run/import_meta/main.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/testdata/run/import_meta') diff --git a/tests/testdata/run/import_meta/importmap.json b/tests/testdata/run/import_meta/importmap.json index d85fe3028..7d583dd81 100644 --- a/tests/testdata/run/import_meta/importmap.json +++ b/tests/testdata/run/import_meta/importmap.json @@ -1,5 +1,7 @@ { "imports": { + "@std/": "../../../util/std/", + "bare": "https://example.com/", "https://example.com/rewrite": "https://example.com/rewritten", diff --git a/tests/testdata/run/import_meta/main.ts b/tests/testdata/run/import_meta/main.ts index 384a9232e..6e4d5be98 100644 --- a/tests/testdata/run/import_meta/main.ts +++ b/tests/testdata/run/import_meta/main.ts @@ -1,4 +1,4 @@ -import { assertThrows } from "../../../../tests/util/std/assert/mod.ts"; +import { assertThrows } from "@std/assert/mod.ts"; import "http://localhost:4545/run/import_meta/other.ts"; import "./other.ts"; -- cgit v1.2.3