diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-02-13 13:05:10 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-13 02:05:10 +0000 |
commit | 92f61882531a0dfa2bd57ab0804daec88721760b (patch) | |
tree | 29be9e4401437f842a0c4630781a3283d0ab6bb1 /tests/node_compat | |
parent | d236fc8b434a997f3588f673c5841b18ebdd8086 (diff) |
chore: use `@std` import instead of `@test_util/std` (#22398)
This PR:
1. Replaces `@test_util/std`-prefixed imports with `@std`.
2. Adds `@std/` import map entries to a few `deno.json` files.
Diffstat (limited to 'tests/node_compat')
-rw-r--r-- | tests/node_compat/common.ts | 6 | ||||
-rw-r--r-- | tests/node_compat/deno.json | 3 | ||||
-rw-r--r-- | tests/node_compat/runner.ts | 2 | ||||
-rw-r--r-- | tests/node_compat/test.ts | 8 |
4 files changed, 10 insertions, 9 deletions
diff --git a/tests/node_compat/common.ts b/tests/node_compat/common.ts index e079c6aaf..c20047237 100644 --- a/tests/node_compat/common.ts +++ b/tests/node_compat/common.ts @@ -1,7 +1,7 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. -import { partition } from "@test_util/std/collections/partition.ts"; -import { join } from "@test_util/std/path/mod.ts"; -import * as JSONC from "@test_util/std/jsonc/mod.ts"; +import { partition } from "@std/collections/partition.ts"; +import { join } from "@std/path/mod.ts"; +import * as JSONC from "@std/jsonc/mod.ts"; /** * The test suite matches the folders inside the `test` folder inside the * node repo diff --git a/tests/node_compat/deno.json b/tests/node_compat/deno.json index ec93111fd..52538a812 100644 --- a/tests/node_compat/deno.json +++ b/tests/node_compat/deno.json @@ -1,5 +1,6 @@ { "imports": { - "@test_util/": "../../test_util/" + "@test_util/": "../../test_util/", + "@std/": "../../test_util/std/" } } diff --git a/tests/node_compat/runner.ts b/tests/node_compat/runner.ts index 4695037cc..e923cde11 100644 --- a/tests/node_compat/runner.ts +++ b/tests/node_compat/runner.ts @@ -1,7 +1,7 @@ // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. import "./polyfill_globals.js"; import { createRequire } from "node:module"; -import { toFileUrl } from "@test_util/std/path/mod.ts"; +import { toFileUrl } from "@std/path/mod.ts"; const file = Deno.args[0]; if (!file) { throw new Error("No file provided"); diff --git a/tests/node_compat/test.ts b/tests/node_compat/test.ts index 13ff429b5..214d49446 100644 --- a/tests/node_compat/test.ts +++ b/tests/node_compat/test.ts @@ -13,10 +13,10 @@ * all share the same working directory. */ -import { magenta } from "@test_util/std/fmt/colors.ts"; -import { pooledMap } from "@test_util/std/async/pool.ts"; -import { dirname, fromFileUrl, join } from "@test_util/std/path/mod.ts"; -import { fail } from "@test_util/std/assert/mod.ts"; +import { magenta } from "@std/fmt/colors.ts"; +import { pooledMap } from "@std/async/pool.ts"; +import { dirname, fromFileUrl, join } from "@std/path/mod.ts"; +import { fail } from "@std/assert/mod.ts"; import { config, getPathsFromTestSuites, |