summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-02-14 03:22:49 +1100
committerGitHub <noreply@github.com>2024-02-13 09:22:49 -0700
commit6be389ce291317346b2085231813cccd0e501daf (patch)
treea9ba1247f99c54aaf063ce4aab94f8a14bc92611 /tools
parenta68eb3fcc3997fce8680f87edce46f6450e79635 (diff)
chore: move `test_util/std` to `tests/util/std` (#22402)
Note: tests are not the only part of the codebase that uses `std`. Other parts, like `tools/`, do too. So, it could be argued that this is a little misleading. Either way, I'm doing this as discussed with @mmastrac.
Diffstat (limited to 'tools')
-rw-r--r--tools/node_compat/deno.json2
-rw-r--r--tools/util.js8
-rwxr-xr-xtools/wpt.ts12
-rw-r--r--tools/wpt/utils.ts2
4 files changed, 15 insertions, 9 deletions
diff --git a/tools/node_compat/deno.json b/tools/node_compat/deno.json
index 98655695f..f2c33c3d5 100644
--- a/tools/node_compat/deno.json
+++ b/tools/node_compat/deno.json
@@ -1,7 +1,7 @@
{
"imports": {
"@test_util/": "../../test_util/",
- "@std/": "../../test_util/std/"
+ "@std/": "../../tests/util/std/"
},
"tasks": {
"setup": "deno run --allow-read --allow-write ./setup.ts",
diff --git a/tools/util.js b/tools/util.js
index 92d8da967..f9cc2d911 100644
--- a/tools/util.js
+++ b/tools/util.js
@@ -5,12 +5,12 @@ import {
join,
resolve,
toFileUrl,
-} from "../test_util/std/path/mod.ts";
+} from "../tests/util/std/path/mod.ts";
import { wait } from "https://deno.land/x/wait@0.1.13/mod.ts";
export { dirname, fromFileUrl, join, resolve, toFileUrl };
-export { existsSync, walk } from "../test_util/std/fs/mod.ts";
-export { TextLineStream } from "../test_util/std/streams/text_line_stream.ts";
-export { delay } from "../test_util/std/async/delay.ts";
+export { existsSync, walk } from "../tests/util/std/fs/mod.ts";
+export { TextLineStream } from "../tests/util/std/streams/text_line_stream.ts";
+export { delay } from "../tests/util/std/async/delay.ts";
// [toolName] --version output
const versions = {
diff --git a/tools/wpt.ts b/tools/wpt.ts
index 62fc7b539..3dab83fb1 100755
--- a/tools/wpt.ts
+++ b/tools/wpt.ts
@@ -32,9 +32,15 @@ import {
updateManifest,
wptreport,
} from "./wpt/utils.ts";
-import { pooledMap } from "../test_util/std/async/pool.ts";
-import { blue, bold, green, red, yellow } from "../test_util/std/fmt/colors.ts";
-import { writeAll, writeAllSync } from "../test_util/std/streams/write_all.ts";
+import { pooledMap } from "../tests/util/std/async/pool.ts";
+import {
+ blue,
+ bold,
+ green,
+ red,
+ yellow,
+} from "../tests/util/std/fmt/colors.ts";
+import { writeAll, writeAllSync } from "../tests/util/std/streams/write_all.ts";
import { saveExpectation } from "./wpt/utils.ts";
class TestFilter {
diff --git a/tools/wpt/utils.ts b/tools/wpt/utils.ts
index 48a50a0e2..aa1d6d115 100644
--- a/tools/wpt/utils.ts
+++ b/tools/wpt/utils.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
/// FLAGS
-import { parse } from "../../test_util/std/flags/mod.ts";
+import { parse } from "../../tests/util/std/flags/mod.ts";
import { join, resolve, ROOT_PATH } from "../util.js";
export const {