summaryrefslogtreecommitdiff
path: root/tests/node_compat
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-07-25 15:30:28 +1000
committerGitHub <noreply@github.com>2024-07-25 15:30:28 +1000
commit5f44148e83bb0056b7a361dd6a1bf28d11f3116d (patch)
treee73ff318a69cabedf33a962be6fa6c73e6775f3e /tests/node_compat
parent84b7504d0fdccc07b9f7412408c954ae07765ccb (diff)
chore: update to `std@2024.07.19` (#24715)
Diffstat (limited to 'tests/node_compat')
-rw-r--r--tests/node_compat/common.ts6
-rw-r--r--tests/node_compat/deno.json5
-rw-r--r--tests/node_compat/runner.ts2
-rw-r--r--tests/node_compat/runner/deno.json5
-rwxr-xr-xtests/node_compat/runner/setup.ts12
-rw-r--r--tests/node_compat/test.ts8
6 files changed, 16 insertions, 22 deletions
diff --git a/tests/node_compat/common.ts b/tests/node_compat/common.ts
index c20047237..9f56744fa 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 "@std/collections/partition.ts";
-import { join } from "@std/path/mod.ts";
-import * as JSONC from "@std/jsonc/mod.ts";
+import { partition } from "@std/collections/partition";
+import { join } from "@std/path";
+import * as JSONC from "@std/jsonc";
/**
* 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 8f629a65c..315d5acda 100644
--- a/tests/node_compat/deno.json
+++ b/tests/node_compat/deno.json
@@ -1,6 +1,3 @@
{
- "imports": {
- "@test_util/": "../../test_util/",
- "@std/": "../util/std/"
- }
+ "importMap": "../../import_map.json"
}
diff --git a/tests/node_compat/runner.ts b/tests/node_compat/runner.ts
index e923cde11..56803fad4 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 "@std/path/mod.ts";
+import { toFileUrl } from "@std/path/to-file-url";
const file = Deno.args[0];
if (!file) {
throw new Error("No file provided");
diff --git a/tests/node_compat/runner/deno.json b/tests/node_compat/runner/deno.json
index e29d224c9..972e817e0 100644
--- a/tests/node_compat/runner/deno.json
+++ b/tests/node_compat/runner/deno.json
@@ -1,8 +1,5 @@
{
- "imports": {
- "@test_util/": "../../test_util/",
- "@std/": "../../util/std/"
- },
+ "importMap": "../../../import_map.json",
"tasks": {
"setup": "deno run --allow-read --allow-write ./setup.ts",
"test": "deno test -A ../test.ts --"
diff --git a/tests/node_compat/runner/setup.ts b/tests/node_compat/runner/setup.ts
index 5ef0bc3db..95fee6a20 100755
--- a/tests/node_compat/runner/setup.ts
+++ b/tests/node_compat/runner/setup.ts
@@ -3,12 +3,12 @@
/** This copies the test files according to the config file `tests/node_compat/config.jsonc` */
-import { walk } from "@std/fs/walk.ts";
-import { SEPARATOR } from "@std/path/constants.ts";
-import { ensureFile } from "@std/fs/ensure_file.ts";
-import { writeAll } from "@std/io/write_all.ts";
-import { withoutAll } from "@std/collections/without_all.ts";
-import { relative } from "@std/path/posix/relative.ts";
+import { walk } from "@std/fs/walk";
+import { SEPARATOR } from "@std/path/constants";
+import { ensureFile } from "@std/fs/ensure-file";
+import { writeAll } from "@std/io/write-all";
+import { withoutAll } from "@std/collections/without-all";
+import { relative } from "@std/path/posix/relative";
import { config, ignoreList } from "../common.ts";
diff --git a/tests/node_compat/test.ts b/tests/node_compat/test.ts
index 3f8655169..c9ec1544d 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 "@std/fmt/colors.ts";
-import { pooledMap } from "@std/async/pool.ts";
-import { dirname, fromFileUrl, join } from "@std/path/mod.ts";
-import { assertEquals, fail } from "@std/assert/mod.ts";
+import { magenta } from "@std/fmt/colors";
+import { pooledMap } from "@std/async/pool";
+import { dirname, fromFileUrl, join } from "@std/path";
+import { assertEquals, fail } from "@std/assert";
import {
config,
getPathsFromTestSuites,