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/compile/dynamic_imports/main_unanalyzable.ts | 8 ++------ tests/testdata/compile/standalone_follow_redirects_2.js | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'tests/testdata/compile') diff --git a/tests/testdata/compile/dynamic_imports/main_unanalyzable.ts b/tests/testdata/compile/dynamic_imports/main_unanalyzable.ts index 34fb76dc4..e2ff07aa1 100644 --- a/tests/testdata/compile/dynamic_imports/main_unanalyzable.ts +++ b/tests/testdata/compile/dynamic_imports/main_unanalyzable.ts @@ -1,15 +1,11 @@ -import { join } from "../../../../tests/util/std/path/mod.ts"; - console.log("Starting the main module"); // We load the dynamic import path from the file system, to make sure any // improvements in static analysis can't defeat the purpose of this test, which // is to make sure the `--include` flag works to add non-analyzed imports to the // module graph. -const IMPORT_PATH_FILE_PATH = join( - Deno.cwd(), - "tests/testdata/compile/dynamic_imports/import_path", -); +const IMPORT_PATH_FILE_PATH = + "./tests/testdata/compile/dynamic_imports/import_path"; setTimeout(async () => { console.log("Dynamic importing"); diff --git a/tests/testdata/compile/standalone_follow_redirects_2.js b/tests/testdata/compile/standalone_follow_redirects_2.js index 1d00679f3..a7639c82c 100644 --- a/tests/testdata/compile/standalone_follow_redirects_2.js +++ b/tests/testdata/compile/standalone_follow_redirects_2.js @@ -2,4 +2,4 @@ import { assertNotEquals as _a, assertStrictEquals as _b, -} from "../../../tests/util/std/assert/mod.ts"; +} from "@std/assert/mod.ts"; -- cgit v1.2.3