summaryrefslogtreecommitdiff
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
parent84b7504d0fdccc07b9f7412408c954ae07765ccb (diff)
chore: update to `std@2024.07.19` (#24715)
-rw-r--r--ext/websocket/autobahn/autobahn_server.js4
-rw-r--r--import_map.json394
-rw-r--r--tests/ffi/tests/test.js2
-rw-r--r--tests/napi/common.js9
-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
-rw-r--r--tests/specs/future/runtime_api/worker.js2
-rw-r--r--tests/specs/future/unstable_flags/worker.js2
-rw-r--r--tests/specs/run/045_proxy/proxy_test.ts8
-rw-r--r--tests/specs/run/045_proxy/proxy_test.ts.out2
-rw-r--r--tests/specs/test/clean_flag/main.js2
-rw-r--r--tests/specs/test/clean_flag/sum_test.js2
-rw-r--r--tests/testdata/cert/listen_tls_alpn_fail.ts2
-rw-r--r--tests/testdata/compile/standalone_follow_redirects_2.js5
-rw-r--r--tests/testdata/coverage/no_snaps_included/no_snaps_included_test.ts2
-rw-r--r--tests/testdata/coverage/no_tests_included/foo.test.js2
-rw-r--r--tests/testdata/coverage/no_tests_included/foo.test.mts2
-rw-r--r--tests/testdata/coverage/no_tests_included/foo.test.ts2
-rw-r--r--tests/testdata/coverage/no_transpiled_lines/index.ts2
-rw-r--r--tests/testdata/echo_server.ts2
-rw-r--r--tests/testdata/run/import_meta/importmap.json3
-rw-r--r--tests/testdata/run/import_meta/main.ts2
-rw-r--r--tests/testdata/run/onload/imported.ts2
-rw-r--r--tests/testdata/run/onload/main.ts2
-rw-r--r--tests/testdata/run/onload/nest_imported.ts2
-rw-r--r--tests/testdata/run/textproto.ts4
-rw-r--r--tests/testdata/run/tls_connecttls.js4
-rw-r--r--tests/testdata/run/tls_starttls.js6
-rw-r--r--tests/testdata/run/websocket_server_idletimeout.ts2
-rw-r--r--tests/testdata/test/allow_all.ts2
-rw-r--r--tests/testdata/test/allow_none.ts2
-rw-r--r--tests/testdata/workers/deno_worker.ts2
-rw-r--r--tests/unit/blob_test.ts2
-rw-r--r--tests/unit/broadcast_channel_test.ts2
-rw-r--r--tests/unit/buffer_test.ts2
-rw-r--r--tests/unit/console_test.ts141
-rw-r--r--tests/unit/fetch_test.ts2
-rw-r--r--tests/unit/files_test.ts2
-rw-r--r--tests/unit/http_test.ts4
-rw-r--r--tests/unit/io_test.ts2
-rw-r--r--tests/unit/kv_test.ts2
-rw-r--r--tests/unit/message_channel_test.ts2
-rw-r--r--tests/unit/serve_test.ts4
-rw-r--r--tests/unit/test_util.ts14
-rw-r--r--tests/unit/tls_test.ts6
-rw-r--r--tests/unit/urlpattern_test.ts2
-rw-r--r--tests/unit/websocketstream_test.ts.disabled2
-rw-r--r--tests/unit/worker_test.ts7
-rw-r--r--tests/unit_node/_fs/_fs_access_test.ts2
-rw-r--r--tests/unit_node/_fs/_fs_appendFile_test.ts4
-rw-r--r--tests/unit_node/_fs/_fs_chmod_test.ts2
-rw-r--r--tests/unit_node/_fs/_fs_chown_test.ts2
-rw-r--r--tests/unit_node/_fs/_fs_close_test.ts2
-rw-r--r--tests/unit_node/_fs/_fs_copy_test.ts4
-rw-r--r--tests/unit_node/_fs/_fs_dir_test.ts2
-rw-r--r--tests/unit_node/_fs/_fs_dirent_test.ts2
-rw-r--r--tests/unit_node/_fs/_fs_exists_test.ts2
-rw-r--r--tests/unit_node/_fs/_fs_fdatasync_test.ts2
-rw-r--r--tests/unit_node/_fs/_fs_fstat_test.ts2
-rw-r--r--tests/unit_node/_fs/_fs_fsync_test.ts2
-rw-r--r--tests/unit_node/_fs/_fs_ftruncate_test.ts2
-rw-r--r--tests/unit_node/_fs/_fs_futimes_test.ts2
-rw-r--r--tests/unit_node/_fs/_fs_handle_test.ts4
-rw-r--r--tests/unit_node/_fs/_fs_link_test.ts4
-rw-r--r--tests/unit_node/_fs/_fs_lstat_test.ts2
-rw-r--r--tests/unit_node/_fs/_fs_mkdir_test.ts4
-rw-r--r--tests/unit_node/_fs/_fs_mkdtemp_test.ts2
-rw-r--r--tests/unit_node/_fs/_fs_open_test.ts2
-rw-r--r--tests/unit_node/_fs/_fs_opendir_test.ts2
-rw-r--r--tests/unit_node/_fs/_fs_readFile_test.ts4
-rw-r--r--tests/unit_node/_fs/_fs_read_test.ts4
-rw-r--r--tests/unit_node/_fs/_fs_readdir_test.ts4
-rw-r--r--tests/unit_node/_fs/_fs_readlink_test.ts4
-rw-r--r--tests/unit_node/_fs/_fs_realpath_test.ts4
-rw-r--r--tests/unit_node/_fs/_fs_rename_test.ts4
-rw-r--r--tests/unit_node/_fs/_fs_rm_test.ts9
-rw-r--r--tests/unit_node/_fs/_fs_rmdir_test.ts4
-rw-r--r--tests/unit_node/_fs/_fs_stat_test.ts2
-rw-r--r--tests/unit_node/_fs/_fs_statfs_test.ts4
-rw-r--r--tests/unit_node/_fs/_fs_symlink_test.ts2
-rw-r--r--tests/unit_node/_fs/_fs_truncate_test.ts2
-rw-r--r--tests/unit_node/_fs/_fs_unlink_test.ts2
-rw-r--r--tests/unit_node/_fs/_fs_utimes_test.ts2
-rw-r--r--tests/unit_node/_fs/_fs_watch_test.ts2
-rw-r--r--tests/unit_node/_fs/_fs_writeFile_test.ts4
-rw-r--r--tests/unit_node/_fs/_fs_write_test.ts2
-rw-r--r--tests/unit_node/_test_utils.ts2
-rw-r--r--tests/unit_node/assertion_error_test.ts8
-rw-r--r--tests/unit_node/async_hooks_test.ts2
-rw-r--r--tests/unit_node/buffer_test.ts2
-rw-r--r--tests/unit_node/child_process_test.ts4
-rw-r--r--tests/unit_node/console_test.ts10
-rw-r--r--tests/unit_node/crypto/crypto_cipher_gcm_test.ts2
-rw-r--r--tests/unit_node/crypto/crypto_cipher_test.ts2
-rw-r--r--tests/unit_node/crypto/crypto_hash_test.ts2
-rw-r--r--tests/unit_node/crypto/crypto_hkdf_test.ts2
-rw-r--r--tests/unit_node/crypto/crypto_key_test.ts2
-rw-r--r--tests/unit_node/crypto/crypto_pbkdf2_test.ts2
-rw-r--r--tests/unit_node/crypto/crypto_scrypt_test.ts2
-rw-r--r--tests/unit_node/crypto/crypto_sign_test.ts2
-rw-r--r--tests/unit_node/dgram_test.ts2
-rw-r--r--tests/unit_node/domain_test.ts2
-rw-r--r--tests/unit_node/fs_test.ts2
-rw-r--r--tests/unit_node/http2_test.ts2
-rw-r--r--tests/unit_node/http_test.ts6
-rw-r--r--tests/unit_node/internal/_randomBytes_test.ts7
-rw-r--r--tests/unit_node/internal/_randomFill_test.ts6
-rw-r--r--tests/unit_node/internal/_randomInt_test.ts2
-rw-r--r--tests/unit_node/module_test.ts2
-rw-r--r--tests/unit_node/net_test.ts4
-rw-r--r--tests/unit_node/os_test.ts2
-rw-r--r--tests/unit_node/path_test.ts2
-rw-r--r--tests/unit_node/perf_hooks_test.ts2
-rw-r--r--tests/unit_node/process_test.ts14
-rw-r--r--tests/unit_node/punycode_test.ts2
-rw-r--r--tests/unit_node/querystring_test.ts2
-rw-r--r--tests/unit_node/readline_test.ts2
-rw-r--r--tests/unit_node/repl_test.ts2
-rw-r--r--tests/unit_node/stream_test.ts4
-rw-r--r--tests/unit_node/string_decoder_test.ts2
-rw-r--r--tests/unit_node/timers_test.ts2
-rw-r--r--tests/unit_node/tls_test.ts6
-rw-r--r--tests/unit_node/tty_test.ts2
-rw-r--r--tests/unit_node/util_test.ts12
-rw-r--r--tests/unit_node/v8_test.ts2
-rw-r--r--tests/unit_node/vm_test.ts2
-rw-r--r--tests/unit_node/worker_threads_test.ts4
-rw-r--r--tests/unit_node/zlib_test.ts4
m---------tests/util/std0
-rw-r--r--tests/wpt/runner/utils.ts4
-rwxr-xr-xtests/wpt/wpt.ts6
-rw-r--r--tools/core_import_map.json394
-rw-r--r--tools/util.js14
137 files changed, 1068 insertions, 321 deletions
diff --git a/ext/websocket/autobahn/autobahn_server.js b/ext/websocket/autobahn/autobahn_server.js
index 73e32a60f..7400c8d54 100644
--- a/ext/websocket/autobahn/autobahn_server.js
+++ b/ext/websocket/autobahn/autobahn_server.js
@@ -1,7 +1,7 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { parse } from "@std/flags/mod.ts";
+import { parseArgs } from "@std/cli/parse-args";
-const { port } = parse(Deno.args, {
+const { port } = parseArgs(Deno.args, {
number: ["port"],
default: {
port: 6969,
diff --git a/import_map.json b/import_map.json
index 0f0240a05..d3fa27e61 100644
--- a/import_map.json
+++ b/import_map.json
@@ -1,5 +1,397 @@
{
"imports": {
- "@std/": "./tests/util/std/"
+ "@std/archive": "./tests/util/std/archive/mod.ts",
+ "@std/archive/tar": "./tests/util/std/archive/tar.ts",
+ "@std/archive/untar": "./tests/util/std/archive/untar.ts",
+ "@std/assert": "./tests/util/std/assert/mod.ts",
+ "@std/assert/assert": "./tests/util/std/assert/assert.ts",
+ "@std/assert/almost-equals": "./tests/util/std/assert/almost_equals.ts",
+ "@std/assert/array-includes": "./tests/util/std/assert/array_includes.ts",
+ "@std/assert/equals": "./tests/util/std/assert/equals.ts",
+ "@std/assert/exists": "./tests/util/std/assert/exists.ts",
+ "@std/assert/false": "./tests/util/std/assert/false.ts",
+ "@std/assert/greater": "./tests/util/std/assert/greater.ts",
+ "@std/assert/greater-or-equal": "./tests/util/std/assert/greater_or_equal.ts",
+ "@std/assert/instance-of": "./tests/util/std/assert/instance_of.ts",
+ "@std/assert/is-error": "./tests/util/std/assert/is_error.ts",
+ "@std/assert/less": "./tests/util/std/assert/less.ts",
+ "@std/assert/less-or-equal": "./tests/util/std/assert/less_or_equal.ts",
+ "@std/assert/match": "./tests/util/std/assert/match.ts",
+ "@std/assert/not-equals": "./tests/util/std/assert/not_equals.ts",
+ "@std/assert/not-instance-of": "./tests/util/std/assert/not_instance_of.ts",
+ "@std/assert/not-match": "./tests/util/std/assert/not_match.ts",
+ "@std/assert/not-strict-equals": "./tests/util/std/assert/not_strict_equals.ts",
+ "@std/assert/object-match": "./tests/util/std/assert/object_match.ts",
+ "@std/assert/rejects": "./tests/util/std/assert/rejects.ts",
+ "@std/assert/strict-equals": "./tests/util/std/assert/strict_equals.ts",
+ "@std/assert/string-includes": "./tests/util/std/assert/string_includes.ts",
+ "@std/assert/throws": "./tests/util/std/assert/throws.ts",
+ "@std/assert/assertion-error": "./tests/util/std/assert/assertion_error.ts",
+ "@std/assert/equal": "./tests/util/std/assert/equal.ts",
+ "@std/assert/fail": "./tests/util/std/assert/fail.ts",
+ "@std/assert/unimplemented": "./tests/util/std/assert/unimplemented.ts",
+ "@std/assert/unreachable": "./tests/util/std/assert/unreachable.ts",
+ "@std/async": "./tests/util/std/async/mod.ts",
+ "@std/async/abortable": "./tests/util/std/async/abortable.ts",
+ "@std/async/deadline": "./tests/util/std/async/deadline.ts",
+ "@std/async/debounce": "./tests/util/std/async/debounce.ts",
+ "@std/async/delay": "./tests/util/std/async/delay.ts",
+ "@std/async/mux-async-iterator": "./tests/util/std/async/mux_async_iterator.ts",
+ "@std/async/pool": "./tests/util/std/async/pool.ts",
+ "@std/async/retry": "./tests/util/std/async/retry.ts",
+ "@std/async/tee": "./tests/util/std/async/tee.ts",
+ "@std/bytes": "./tests/util/std/bytes/mod.ts",
+ "@std/bytes/concat": "./tests/util/std/bytes/concat.ts",
+ "@std/bytes/copy": "./tests/util/std/bytes/copy.ts",
+ "@std/bytes/ends-with": "./tests/util/std/bytes/ends_with.ts",
+ "@std/bytes/equals": "./tests/util/std/bytes/equals.ts",
+ "@std/bytes/includes-needle": "./tests/util/std/bytes/includes_needle.ts",
+ "@std/bytes/index-of-needle": "./tests/util/std/bytes/index_of_needle.ts",
+ "@std/bytes/last-index-of-needle": "./tests/util/std/bytes/last_index_of_needle.ts",
+ "@std/bytes/repeat": "./tests/util/std/bytes/repeat.ts",
+ "@std/bytes/starts-with": "./tests/util/std/bytes/starts_with.ts",
+ "@std/cli": "./tests/util/std/cli/mod.ts",
+ "@std/cli/parse-args": "./tests/util/std/cli/parse_args.ts",
+ "@std/cli/prompt-secret": "./tests/util/std/cli/prompt_secret.ts",
+ "@std/cli/spinner": "./tests/util/std/cli/spinner.ts",
+ "@std/cli/unicode-width": "./tests/util/std/cli/unicode_width.ts",
+ "@std/collections": "./tests/util/std/collections/mod.ts",
+ "@std/collections/aggregate-groups": "./tests/util/std/collections/aggregate_groups.ts",
+ "@std/collections/associate-by": "./tests/util/std/collections/associate_by.ts",
+ "@std/collections/associate-with": "./tests/util/std/collections/associate_with.ts",
+ "@std/collections/chunk": "./tests/util/std/collections/chunk.ts",
+ "@std/collections/deep-merge": "./tests/util/std/collections/deep_merge.ts",
+ "@std/collections/distinct": "./tests/util/std/collections/distinct.ts",
+ "@std/collections/distinct-by": "./tests/util/std/collections/distinct_by.ts",
+ "@std/collections/drop-last-while": "./tests/util/std/collections/drop_last_while.ts",
+ "@std/collections/drop-while": "./tests/util/std/collections/drop_while.ts",
+ "@std/collections/filter-entries": "./tests/util/std/collections/filter_entries.ts",
+ "@std/collections/filter-keys": "./tests/util/std/collections/filter_keys.ts",
+ "@std/collections/filter-values": "./tests/util/std/collections/filter_values.ts",
+ "@std/collections/find-single": "./tests/util/std/collections/find_single.ts",
+ "@std/collections/first-not-nullish-of": "./tests/util/std/collections/first_not_nullish_of.ts",
+ "@std/collections/includes-value": "./tests/util/std/collections/includes_value.ts",
+ "@std/collections/intersect": "./tests/util/std/collections/intersect.ts",
+ "@std/collections/invert-by": "./tests/util/std/collections/invert_by.ts",
+ "@std/collections/invert": "./tests/util/std/collections/invert.ts",
+ "@std/collections/join-to-string": "./tests/util/std/collections/join_to_string.ts",
+ "@std/collections/map-entries": "./tests/util/std/collections/map_entries.ts",
+ "@std/collections/map-keys": "./tests/util/std/collections/map_keys.ts",
+ "@std/collections/map-not-nullish": "./tests/util/std/collections/map_not_nullish.ts",
+ "@std/collections/map-values": "./tests/util/std/collections/map_values.ts",
+ "@std/collections/max-by": "./tests/util/std/collections/max_by.ts",
+ "@std/collections/max-of": "./tests/util/std/collections/max_of.ts",
+ "@std/collections/max-with": "./tests/util/std/collections/max_with.ts",
+ "@std/collections/min-by": "./tests/util/std/collections/min_by.ts",
+ "@std/collections/min-of": "./tests/util/std/collections/min_of.ts",
+ "@std/collections/min-with": "./tests/util/std/collections/min_with.ts",
+ "@std/collections/omit": "./tests/util/std/collections/omit.ts",
+ "@std/collections/partition": "./tests/util/std/collections/partition.ts",
+ "@std/collections/partition-entries": "./tests/util/std/collections/partition_entries.ts",
+ "@std/collections/permutations": "./tests/util/std/collections/permutations.ts",
+ "@std/collections/pick": "./tests/util/std/collections/pick.ts",
+ "@std/collections/reduce-groups": "./tests/util/std/collections/reduce_groups.ts",
+ "@std/collections/running-reduce": "./tests/util/std/collections/running_reduce.ts",
+ "@std/collections/sample": "./tests/util/std/collections/sample.ts",
+ "@std/collections/sliding-windows": "./tests/util/std/collections/sliding_windows.ts",
+ "@std/collections/sort-by": "./tests/util/std/collections/sort_by.ts",
+ "@std/collections/sum-of": "./tests/util/std/collections/sum_of.ts",
+ "@std/collections/take-last-while": "./tests/util/std/collections/take_last_while.ts",
+ "@std/collections/take-while": "./tests/util/std/collections/take_while.ts",
+ "@std/collections/union": "./tests/util/std/collections/union.ts",
+ "@std/collections/unzip": "./tests/util/std/collections/unzip.ts",
+ "@std/collections/without-all": "./tests/util/std/collections/without_all.ts",
+ "@std/collections/zip": "./tests/util/std/collections/zip.ts",
+ "@std/crypto": "./tests/util/std/crypto/mod.ts",
+ "@std/crypto/crypto": "./tests/util/std/crypto/crypto.ts",
+ "@std/crypto/timing-safe-equal": "./tests/util/std/crypto/timing_safe_equal.ts",
+ "@std/csv": "./tests/util/std/csv/mod.ts",
+ "@std/csv/parse": "./tests/util/std/csv/parse.ts",
+ "@std/csv/parse-stream": "./tests/util/std/csv/parse_stream.ts",
+ "@std/csv/stringify": "./tests/util/std/csv/stringify.ts",
+ "@std/csv/stringify-stream": "./tests/util/std/csv/stringify_stream.ts",
+ "@std/data-structures": "./tests/util/std/data_structures/mod.ts",
+ "@std/data-structures/binary-heap": "./tests/util/std/data_structures/binary_heap.ts",
+ "@std/data-structures/binary-search-tree": "./tests/util/std/data_structures/binary_search_tree.ts",
+ "@std/data-structures/comparators": "./tests/util/std/data_structures/comparators.ts",
+ "@std/data-structures/red-black-tree": "./tests/util/std/data_structures/red_black_tree.ts",
+ "@std/datetime": "./tests/util/std/datetime/mod.ts",
+ "@std/datetime/constants": "./tests/util/std/datetime/constants.ts",
+ "@std/datetime/day-of-year": "./tests/util/std/datetime/day_of_year.ts",
+ "@std/datetime/difference": "./tests/util/std/datetime/difference.ts",
+ "@std/datetime/format": "./tests/util/std/datetime/format.ts",
+ "@std/datetime/is-leap": "./tests/util/std/datetime/is_leap.ts",
+ "@std/datetime/parse": "./tests/util/std/datetime/parse.ts",
+ "@std/datetime/week-of-year": "./tests/util/std/datetime/week_of_year.ts",
+ "@std/dotenv": "./tests/util/std/dotenv/mod.ts",
+ "@std/dotenv/load": "./tests/util/std/dotenv/load.ts",
+ "@std/dotenv/parse": "./tests/util/std/dotenv/parse.ts",
+ "@std/dotenv/stringify": "./tests/util/std/dotenv/stringify.ts",
+ "@std/encoding": "./tests/util/std/encoding/mod.ts",
+ "@std/encoding/ascii85": "./tests/util/std/encoding/ascii85.ts",
+ "@std/encoding/base32": "./tests/util/std/encoding/base32.ts",
+ "@std/encoding/base58": "./tests/util/std/encoding/base58.ts",
+ "@std/encoding/base64": "./tests/util/std/encoding/base64.ts",
+ "@std/encoding/base64url": "./tests/util/std/encoding/base64url.ts",
+ "@std/encoding/hex": "./tests/util/std/encoding/hex.ts",
+ "@std/encoding/varint": "./tests/util/std/encoding/varint.ts",
+ "@std/expect": "./tests/util/std/expect/mod.ts",
+ "@std/expect/expect": "./tests/util/std/expect/expect.ts",
+ "@std/expect/fn": "./tests/util/std/expect/fn.ts",
+ "@std/fmt/bytes": "./tests/util/std/fmt/bytes.ts",
+ "@std/fmt/colors": "./tests/util/std/fmt/colors.ts",
+ "@std/fmt/duration": "./tests/util/std/fmt/duration.ts",
+ "@std/fmt/printf": "./tests/util/std/fmt/printf.ts",
+ "@std/front-matter": "./tests/util/std/front_matter/mod.ts",
+ "@std/front-matter/any": "./tests/util/std/front_matter/any.ts",
+ "@std/front-matter/json": "./tests/util/std/front_matter/json.ts",
+ "@std/front-matter/test": "./tests/util/std/front_matter/test.ts",
+ "@std/front-matter/toml": "./tests/util/std/front_matter/toml.ts",
+ "@std/front-matter/yaml": "./tests/util/std/front_matter/yaml.ts",
+ "@std/front-matter/types": "./tests/util/std/front_matter/types.ts",
+ "@std/fs": "./tests/util/std/fs/mod.ts",
+ "@std/fs/copy": "./tests/util/std/fs/copy.ts",
+ "@std/fs/empty-dir": "./tests/util/std/fs/empty_dir.ts",
+ "@std/fs/ensure-dir": "./tests/util/std/fs/ensure_dir.ts",
+ "@std/fs/ensure-file": "./tests/util/std/fs/ensure_file.ts",
+ "@std/fs/ensure-link": "./tests/util/std/fs/ensure_link.ts",
+ "@std/fs/ensure-symlink": "./tests/util/std/fs/ensure_symlink.ts",
+ "@std/fs/eol": "./tests/util/std/fs/eol.ts",
+ "@std/fs/exists": "./tests/util/std/fs/exists.ts",
+ "@std/fs/expand-glob": "./tests/util/std/fs/expand_glob.ts",
+ "@std/fs/move": "./tests/util/std/fs/move.ts",
+ "@std/fs/walk": "./tests/util/std/fs/walk.ts",
+ "@std/html": "./tests/util/std/html/mod.ts",
+ "@std/html/entities": "./tests/util/std/html/entities.ts",
+ "@std/html/named-entity-list.json": "./tests/util/std/html/named_entity_list.json",
+ "@std/http": "./tests/util/std/http/mod.ts",
+ "@std/http/cookie": "./tests/util/std/http/cookie.ts",
+ "@std/http/etag": "./tests/util/std/http/etag.ts",
+ "@std/http/file-server": "./tests/util/std/http/file_server.ts",
+ "@std/http/negotiation": "./tests/util/std/http/negotiation.ts",
+ "@std/http/server-sent-event-stream": "./tests/util/std/http/server_sent_event_stream.ts",
+ "@std/http/status": "./tests/util/std/http/status.ts",
+ "@std/http/signed-cookie": "./tests/util/std/http/signed_cookie.ts",
+ "@std/http/user-agent": "./tests/util/std/http/user_agent.ts",
+ "@std/ini": "./tests/util/std/ini/mod.ts",
+ "@std/ini/parse": "./tests/util/std/ini/parse.ts",
+ "@std/ini/stringify": "./tests/util/std/ini/stringify.ts",
+ "@std/internal": "./tests/util/std/internal/mod.ts",
+ "@std/internal/build-message": "./tests/util/std/internal/build_message.ts",
+ "@std/internal/diff-str": "./tests/util/std/internal/diff_str.ts",
+ "@std/internal/diff": "./tests/util/std/internal/diff.ts",
+ "@std/internal/format": "./tests/util/std/internal/format.ts",
+ "@std/internal/styles": "./tests/util/std/internal/styles.ts",
+ "@std/internal/types": "./tests/util/std/internal/types.ts",
+ "@std/io": "./tests/util/std/io/mod.ts",
+ "@std/io/buf-reader": "./tests/util/std/io/buf_reader.ts",
+ "@std/io/buf-writer": "./tests/util/std/io/buf_writer.ts",
+ "@std/io/buffer": "./tests/util/std/io/buffer.ts",
+ "@std/io/copy": "./tests/util/std/io/copy.ts",
+ "@std/io/copy-n": "./tests/util/std/io/copy_n.ts",
+ "@std/io/iterate-reader": "./tests/util/std/io/iterate_reader.ts",
+ "@std/io/limited-reader": "./tests/util/std/io/limited_reader.ts",
+ "@std/io/multi-reader": "./tests/util/std/io/multi_reader.ts",
+ "@std/io/read-all": "./tests/util/std/io/read_all.ts",
+ "@std/io/read-delim": "./tests/util/std/io/read_delim.ts",
+ "@std/io/read-int": "./tests/util/std/io/read_int.ts",
+ "@std/io/read-lines": "./tests/util/std/io/read_lines.ts",
+ "@std/io/read-long": "./tests/util/std/io/read_long.ts",
+ "@std/io/read-range": "./tests/util/std/io/read_range.ts",
+ "@std/io/read-short": "./tests/util/std/io/read_short.ts",
+ "@std/io/read-string-delim": "./tests/util/std/io/read_string_delim.ts",
+ "@std/io/reader-from-stream-reader": "./tests/util/std/io/reader_from_stream_reader.ts",
+ "@std/io/slice-long-to-bytes": "./tests/util/std/io/slice_long_to_bytes.ts",
+ "@std/io/string-reader": "./tests/util/std/io/string_reader.ts",
+ "@std/io/string-writer": "./tests/util/std/io/string_writer.ts",
+ "@std/io/to-readable-stream": "./tests/util/std/io/to_readable_stream.ts",
+ "@std/io/to-writable-stream": "./tests/util/std/io/to_writable_stream.ts",
+ "@std/io/types": "./tests/util/std/io/types.ts",
+ "@std/io/write-all": "./tests/util/std/io/write_all.ts",
+ "@std/json": "./tests/util/std/json/mod.ts",
+ "@std/json/types": "./tests/util/std/json/types.ts",
+ "@std/json/concatenated-json-parse-stream": "./tests/util/std/json/concatenated_json_parse_stream.ts",
+ "@std/json/parse-stream": "./tests/util/std/json/parse_stream.ts",
+ "@std/json/stringify-stream": "./tests/util/std/json/stringify_stream.ts",
+ "@std/jsonc": "./tests/util/std/jsonc/mod.ts",
+ "@std/jsonc/parse": "./tests/util/std/jsonc/parse.ts",
+ "@std/log": "./tests/util/std/log/mod.ts",
+ "@std/log/base-handler": "./tests/util/std/log/base_handler.ts",
+ "@std/log/console-handler": "./tests/util/std/log/console_handler.ts",
+ "@std/log/critical": "./tests/util/std/log/critical.ts",
+ "@std/log/debug": "./tests/util/std/log/debug.ts",
+ "@std/log/error": "./tests/util/std/log/error.ts",
+ "@std/log/file-handler": "./tests/util/std/log/file_handler.ts",
+ "@std/log/formatters": "./tests/util/std/log/formatters.ts",
+ "@std/log/get-logger": "./tests/util/std/log/get_logger.ts",
+ "@std/log/info": "./tests/util/std/log/info.ts",
+ "@std/log/levels": "./tests/util/std/log/levels.ts",
+ "@std/log/logger": "./tests/util/std/log/logger.ts",
+ "@std/log/rotating-file-handler": "./tests/util/std/log/rotating_file_handler.ts",
+ "@std/log/setup": "./tests/util/std/log/setup.ts",
+ "@std/log/warn": "./tests/util/std/log/warn.ts",
+ "@std/media-types": "./tests/util/std/media_types/mod.ts",
+ "@std/media-types/content-type": "./tests/util/std/media_types/content_type.ts",
+ "@std/media-types/extension": "./tests/util/std/media_types/extension.ts",
+ "@std/media-types/all-extensions": "./tests/util/std/media_types/all_extensions.ts",
+ "@std/media-types/format-media-type": "./tests/util/std/media_types/format_media_type.ts",
+ "@std/media-types/get-charset": "./tests/util/std/media_types/get_charset.ts",
+ "@std/media-types/parse-media-type": "./tests/util/std/media_types/parse_media_type.ts",
+ "@std/media-types/type-by-extension": "./tests/util/std/media_types/type_by_extension.ts",
+ "@std/msgpack": "./tests/util/std/msgpack/mod.ts",
+ "@std/msgpack/decode": "./tests/util/std/msgpack/decode.ts",
+ "@std/msgpack/encode": "./tests/util/std/msgpack/encode.ts",
+ "@std/net": "./tests/util/std/net/mod.ts",
+ "@std/net/get-available-port": "./tests/util/std/net/get_available_port.ts",
+ "@std/net/get-network-address": "./tests/util/std/net/get_network_address.ts",
+ "@std/path": "./tests/util/std/path/mod.ts",
+ "@std/path/basename": "./tests/util/std/path/basename.ts",
+ "@std/path/common": "./tests/util/std/path/common.ts",
+ "@std/path/constants": "./tests/util/std/path/constants.ts",
+ "@std/path/dirname": "./tests/util/std/path/dirname.ts",
+ "@std/path/extname": "./tests/util/std/path/extname.ts",
+ "@std/path/format": "./tests/util/std/path/format.ts",
+ "@std/path/from-file-url": "./tests/util/std/path/from_file_url.ts",
+ "@std/path/glob-to-regexp": "./tests/util/std/path/glob_to_regexp.ts",
+ "@std/path/is-absolute": "./tests/util/std/path/is_absolute.ts",
+ "@std/path/is-glob": "./tests/util/std/path/is_glob.ts",
+ "@std/path/join": "./tests/util/std/path/join.ts",
+ "@std/path/join-globs": "./tests/util/std/path/join_globs.ts",
+ "@std/path/normalize": "./tests/util/std/path/normalize.ts",
+ "@std/path/normalize-glob": "./tests/util/std/path/normalize_glob.ts",
+ "@std/path/parse": "./tests/util/std/path/parse.ts",
+ "@std/path/posix": "./tests/util/std/path/posix/mod.ts",
+ "@std/path/posix/basename": "./tests/util/std/path/posix/basename.ts",
+ "@std/path/posix/common": "./tests/util/std/path/posix/common.ts",
+ "@std/path/posix/constants": "./tests/util/std/path/posix/constants.ts",
+ "@std/path/posix/dirname": "./tests/util/std/path/posix/dirname.ts",
+ "@std/path/posix/extname": "./tests/util/std/path/posix/extname.ts",
+ "@std/path/posix/format": "./tests/util/std/path/posix/format.ts",
+ "@std/path/posix/from-file-url": "./tests/util/std/path/posix/from_file_url.ts",
+ "@std/path/posix/glob-to-regexp": "./tests/util/std/path/posix/glob_to_regexp.ts",
+ "@std/path/posix/is-absolute": "./tests/util/std/path/posix/is_absolute.ts",
+ "@std/path/posix/is-glob": "./tests/util/std/path/posix/is_glob.ts",
+ "@std/path/posix/join": "./tests/util/std/path/posix/join.ts",
+ "@std/path/posix/join-globs": "./tests/util/std/path/posix/join_globs.ts",
+ "@std/path/posix/normalize": "./tests/util/std/path/posix/normalize.ts",
+ "@std/path/posix/normalize-glob": "./tests/util/std/path/posix/normalize_glob.ts",
+ "@std/path/posix/parse": "./tests/util/std/path/posix/parse.ts",
+ "@std/path/posix/relative": "./tests/util/std/path/posix/relative.ts",
+ "@std/path/posix/resolve": "./tests/util/std/path/posix/resolve.ts",
+ "@std/path/posix/to-file-url": "./tests/util/std/path/posix/to_file_url.ts",
+ "@std/path/posix/to-namespaced-path": "./tests/util/std/path/posix/to_namespaced_path.ts",
+ "@std/path/relative": "./tests/util/std/path/relative.ts",
+ "@std/path/resolve": "./tests/util/std/path/resolve.ts",
+ "@std/path/to-file-url": "./tests/util/std/path/to_file_url.ts",
+ "@std/path/to-namespaced-path": "./tests/util/std/path/to_namespaced_path.ts",
+ "@std/path/types": "./tests/util/std/path/types.ts",
+ "@std/path/windows": "./tests/util/std/path/windows/mod.ts",
+ "@std/path/windows/basename": "./tests/util/std/path/windows/basename.ts",
+ "@std/path/windows/common": "./tests/util/std/path/windows/common.ts",
+ "@std/path/windows/constants": "./tests/util/std/path/windows/constants.ts",
+ "@std/path/windows/dirname": "./tests/util/std/path/windows/dirname.ts",
+ "@std/path/windows/extname": "./tests/util/std/path/windows/extname.ts",
+ "@std/path/windows/format": "./tests/util/std/path/windows/format.ts",
+ "@std/path/windows/from-file-url": "./tests/util/std/path/windows/from_file_url.ts",
+ "@std/path/windows/glob-to-regexp": "./tests/util/std/path/windows/glob_to_regexp.ts",
+ "@std/path/windows/is-absolute": "./tests/util/std/path/windows/is_absolute.ts",
+ "@std/path/windows/is-glob": "./tests/util/std/path/windows/is_glob.ts",
+ "@std/path/windows/join": "./tests/util/std/path/windows/join.ts",
+ "@std/path/windows/join-globs": "./tests/util/std/path/windows/join_globs.ts",
+ "@std/path/windows/normalize": "./tests/util/std/path/windows/normalize.ts",
+ "@std/path/windows/normalize-glob": "./tests/util/std/path/windows/normalize_glob.ts",
+ "@std/path/windows/parse": "./tests/util/std/path/windows/parse.ts",
+ "@std/path/windows/relative": "./tests/util/std/path/windows/relative.ts",
+ "@std/path/windows/resolve": "./tests/util/std/path/windows/resolve.ts",
+ "@std/path/windows/to-file-url": "./tests/util/std/path/windows/to_file_url.ts",
+ "@std/path/windows/to-namespaced-path": "./tests/util/std/path/windows/to_namespaced_path.ts",
+ "@std/regexp": "./tests/util/std/regexp/mod.ts",
+ "@std/regexp/escape": "./tests/util/std/regexp/escape.ts",
+ "@std/semver": "./tests/util/std/semver/mod.ts",
+ "@std/semver/can-parse": "./tests/util/std/semver/can_parse.ts",
+ "@std/semver/compare": "./tests/util/std/semver/compare.ts",
+ "@std/semver/difference": "./tests/util/std/semver/difference.ts",
+ "@std/semver/equals": "./tests/util/std/semver/equals.ts",
+ "@std/semver/format": "./tests/util/std/semver/format.ts",
+ "@std/semver/format-range": "./tests/util/std/semver/format_range.ts",
+ "@std/semver/greater-or-equal": "./tests/util/std/semver/greater_or_equal.ts",
+ "@std/semver/greater-than": "./tests/util/std/semver/greater_than.ts",
+ "@std/semver/greater-than-range": "./tests/util/std/semver/greater_than_range.ts",
+ "@std/semver/increment": "./tests/util/std/semver/increment.ts",
+ "@std/semver/is-range": "./tests/util/std/semver/is_range.ts",
+ "@std/semver/is-semver": "./tests/util/std/semver/is_semver.ts",
+ "@std/semver/less-or-equal": "./tests/util/std/semver/less_or_equal.ts",
+ "@std/semver/less-than": "./tests/util/std/semver/less_than.ts",
+ "@std/semver/less-than-range": "./tests/util/std/semver/less_than_range.ts",
+ "@std/semver/max-satisfying": "./tests/util/std/semver/max_satisfying.ts",
+ "@std/semver/min-satisfying": "./tests/util/std/semver/min_satisfying.ts",
+ "@std/semver/not-equals": "./tests/util/std/semver/not_equals.ts",
+ "@std/semver/parse": "./tests/util/std/semver/parse.ts",
+ "@std/semver/parse-range": "./tests/util/std/semver/parse_range.ts",
+ "@std/semver/range-intersects": "./tests/util/std/semver/range_intersects.ts",
+ "@std/semver/satisfies": "./tests/util/std/semver/satisfies.ts",
+ "@std/semver/try-parse": "./tests/util/std/semver/try_parse.ts",
+ "@std/semver/try-parse-range": "./tests/util/std/semver/try_parse_range.ts",
+ "@std/semver/types": "./tests/util/std/semver/types.ts",
+ "@std/streams": "./tests/util/std/streams/mod.ts",
+ "@std/streams/buffer": "./tests/util/std/streams/buffer.ts",
+ "@std/streams/byte-slice-stream": "./tests/util/std/streams/byte_slice_stream.ts",
+ "@std/streams/concat-readable-streams": "./tests/util/std/streams/concat_readable_streams.ts",
+ "@std/streams/delimiter-stream": "./tests/util/std/streams/delimiter_stream.ts",
+ "@std/streams/early-zip-readable-streams": "./tests/util/std/streams/early_zip_readable_streams.ts",
+ "@std/streams/limited-bytes-transform-stream": "./tests/util/std/streams/limited_bytes_transform_stream.ts",
+ "@std/streams/limited-transform-stream": "./tests/util/std/streams/limited_transform_stream.ts",
+ "@std/streams/merge-readable-streams": "./tests/util/std/streams/merge_readable_streams.ts",
+ "@std/streams/text-delimiter-stream": "./tests/util/std/streams/text_delimiter_stream.ts",
+ "@std/streams/text-line-stream": "./tests/util/std/streams/text_line_stream.ts",
+ "@std/streams/to-array-buffer": "./tests/util/std/streams/to_array_buffer.ts",
+ "@std/streams/to-blob": "./tests/util/std/streams/to_blob.ts",
+ "@std/streams/to-json": "./tests/util/std/streams/to_json.ts",
+ "@std/streams/to-text": "./tests/util/std/streams/to_text.ts",
+ "@std/streams/to-transform-stream": "./tests/util/std/streams/to_transform_stream.ts",
+ "@std/streams/zip-readable-streams": "./tests/util/std/streams/zip_readable_streams.ts",
+ "@std/testing/bdd": "./tests/util/std/testing/bdd.ts",
+ "@std/testing/mock": "./tests/util/std/testing/mock.ts",
+ "@std/testing/snapshot": "./tests/util/std/testing/snapshot.ts",
+ "@std/testing/time": "./tests/util/std/testing/time.ts",
+ "@std/testing/types": "./tests/util/std/testing/types.ts",
+ "@std/text": "./tests/util/std/text/mod.ts",
+ "@std/text/closest-string": "./tests/util/std/text/closest_string.ts",
+ "@std/text/compare-similarity": "./tests/util/std/text/compare_similarity.ts",
+ "@std/text/levenshtein-distance": "./tests/util/std/text/levenshtein_distance.ts",
+ "@std/text/to-camel-case": "./tests/util/std/text/to_camel_case.ts",
+ "@std/text/to-constant-case": "./tests/util/std/text/to_constant_case.ts",
+ "@std/text/to-kebab-case": "./tests/util/std/text/to_kebab_case.ts",
+ "@std/text/to-pascal-case": "./tests/util/std/text/to_pascal_case.ts",
+ "@std/text/to-snake-case": "./tests/util/std/text/to_snake_case.ts",
+ "@std/text/word-similarity-sort": "./tests/util/std/text/word_similarity_sort.ts",
+ "@std/toml": "./tests/util/std/toml/mod.ts",
+ "@std/toml/parse": "./tests/util/std/toml/parse.ts",
+ "@std/toml/stringify": "./tests/util/std/toml/stringify.ts",
+ "@std/ulid": "./tests/util/std/ulid/mod.ts",
+ "@std/ulid/decode-time": "./tests/util/std/ulid/decode_time.ts",
+ "@std/ulid/monotonic-ulid": "./tests/util/std/ulid/monotonic_ulid.ts",
+ "@std/ulid/ulid": "./tests/util/std/ulid/ulid.ts",
+ "@std/url": "./tests/util/std/url/mod.ts",
+ "@std/url/basename": "./tests/util/std/url/basename.ts",
+ "@std/url/dirname": "./tests/util/std/url/dirname.ts",
+ "@std/url/extname": "./tests/util/std/url/extname.ts",
+ "@std/url/join": "./tests/util/std/url/join.ts",
+ "@std/url/normalize": "./tests/util/std/url/normalize.ts",
+ "@std/uuid": "./tests/util/std/uuid/mod.ts",
+ "@std/uuid/common": "./tests/util/std/uuid/common.ts",
+ "@std/uuid/constants": "./tests/util/std/uuid/constants.ts",
+ "@std/uuid/v1": "./tests/util/std/uuid/v1.ts",
+ "@std/uuid/v3": "./tests/util/std/uuid/v3.ts",
+ "@std/uuid/v4": "./tests/util/std/uuid/v4.ts",
+ "@std/uuid/v5": "./tests/util/std/uuid/v5.ts",
+ "@std/webgpu": "./tests/util/std/webgpu/mod.ts",
+ "@std/webgpu/create-capture": "./tests/util/std/webgpu/create_capture.ts",
+ "@std/webgpu/describe-texture-format": "./tests/util/std/webgpu/describe_texture_format.ts",
+ "@std/webgpu/row-padding": "./tests/util/std/webgpu/row_padding.ts",
+ "@std/webgpu/texture-with-data": "./tests/util/std/webgpu/texture_with_data.ts",
+ "@std/yaml": "./tests/util/std/yaml/mod.ts",
+ "@std/yaml/parse": "./tests/util/std/yaml/parse.ts",
+ "@std/yaml/stringify": "./tests/util/std/yaml/stringify.ts"
}
}
diff --git a/tests/ffi/tests/test.js b/tests/ffi/tests/test.js
index 16dba6832..074db8188 100644
--- a/tests/ffi/tests/test.js
+++ b/tests/ffi/tests/test.js
@@ -10,7 +10,7 @@ import {
assertInstanceOf,
assertEquals,
assertFalse,
-} from "@std/assert/mod.ts";
+} from "@std/assert";
const targetDir = Deno.execPath().replace(/[^\/\\]+$/, "");
const [libPrefix, libSuffix] = {
diff --git a/tests/napi/common.js b/tests/napi/common.js
index 3a4f253ef..6dfdc873a 100644
--- a/tests/napi/common.js
+++ b/tests/napi/common.js
@@ -1,12 +1,7 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-export {
- assert,
- assertEquals,
- assertRejects,
- assertThrows,
-} from "@std/assert/mod.ts";
-export { fromFileUrl } from "@std/path/mod.ts";
+export { assert, assertEquals, assertRejects, assertThrows } from "@std/assert";
+export { fromFileUrl } from "@std/path";
import process from "node:process";
const targetDir = Deno.execPath().replace(/[^\/\\]+$/, "");
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,
diff --git a/tests/specs/future/runtime_api/worker.js b/tests/specs/future/runtime_api/worker.js
index 36d35b7b2..eac42fe56 100644
--- a/tests/specs/future/runtime_api/worker.js
+++ b/tests/specs/future/runtime_api/worker.js
@@ -1,4 +1,4 @@
-import { delay } from "@std/async/delay.ts";
+import { delay } from "@std/async/delay";
const worker = new Worker(import.meta.resolve("./main.js"), { type: "module" });
await delay(1_000);
diff --git a/tests/specs/future/unstable_flags/worker.js b/tests/specs/future/unstable_flags/worker.js
index 36d35b7b2..eac42fe56 100644
--- a/tests/specs/future/unstable_flags/worker.js
+++ b/tests/specs/future/unstable_flags/worker.js
@@ -1,4 +1,4 @@
-import { delay } from "@std/async/delay.ts";
+import { delay } from "@std/async/delay";
const worker = new Worker(import.meta.resolve("./main.js"), { type: "module" });
await delay(1_000);
diff --git a/tests/specs/run/045_proxy/proxy_test.ts b/tests/specs/run/045_proxy/proxy_test.ts
index d04356930..70781f97d 100644
--- a/tests/specs/run/045_proxy/proxy_test.ts
+++ b/tests/specs/run/045_proxy/proxy_test.ts
@@ -1,14 +1,10 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { Server } from "@std/http/server.ts";
-
const addr = Deno.args[1] || "localhost:4555";
-async function proxyServer() {
+function proxyServer() {
const [hostname, p] = addr.split(":");
const port = parseInt(p ?? 4555);
- const server = new Server({ hostname, port, handler });
- console.log(`Proxy server listening on http://${addr}/`);
- await server.listenAndServe();
+ Deno.serve({ hostname, port }, handler);
}
async function handler(req: Request): Promise<Response> {
diff --git a/tests/specs/run/045_proxy/proxy_test.ts.out b/tests/specs/run/045_proxy/proxy_test.ts.out
index a1e567a14..39cb8779a 100644
--- a/tests/specs/run/045_proxy/proxy_test.ts.out
+++ b/tests/specs/run/045_proxy/proxy_test.ts.out
@@ -1,4 +1,4 @@
-Proxy server listening on [WILDCARD]
+Listening on [WILDCARD]
Proxy request to: http://localhost:4545/run/045_mod.ts
Proxy request to: http://localhost:4545/run/045_mod.ts
Proxy request to: http://localhost:4545/run/045_output.ts
diff --git a/tests/specs/test/clean_flag/main.js b/tests/specs/test/clean_flag/main.js
index 9ccdea1ce..d00e56958 100644
--- a/tests/specs/test/clean_flag/main.js
+++ b/tests/specs/test/clean_flag/main.js
@@ -1,4 +1,4 @@
-import { emptyDir } from "@std/fs/empty_dir.ts";
+import { emptyDir } from "@std/fs/empty-dir";
const DIR = "./coverage";
const COMMAND = new Deno.Command(Deno.execPath(), {
diff --git a/tests/specs/test/clean_flag/sum_test.js b/tests/specs/test/clean_flag/sum_test.js
index eab3c53ad..e49b60d45 100644
--- a/tests/specs/test/clean_flag/sum_test.js
+++ b/tests/specs/test/clean_flag/sum_test.js
@@ -1,5 +1,5 @@
import { sum } from "./sum.js";
-import { assertEquals } from "@std/assert/assert_equals.ts";
+import { assertEquals } from "@std/assert/equals";
Deno.test("sum()", () => {
assertEquals(sum(1, 2), 3);
diff --git a/tests/testdata/cert/listen_tls_alpn_fail.ts b/tests/testdata/cert/listen_tls_alpn_fail.ts
index 484c28212..9a96c04dd 100644
--- a/tests/testdata/cert/listen_tls_alpn_fail.ts
+++ b/tests/testdata/cert/listen_tls_alpn_fail.ts
@@ -1,4 +1,4 @@
-import { assertRejects } from "@std/assert/mod.ts";
+import { assertRejects } from "@std/assert";
const listener = Deno.listenTls({
port: Number(Deno.args[0]),
diff --git a/tests/testdata/compile/standalone_follow_redirects_2.js b/tests/testdata/compile/standalone_follow_redirects_2.js
index a7639c82c..b5fcb9e8a 100644
--- a/tests/testdata/compile/standalone_follow_redirects_2.js
+++ b/tests/testdata/compile/standalone_follow_redirects_2.js
@@ -1,5 +1,2 @@
// unversioned import redirects with dependencies.
-import {
- assertNotEquals as _a,
- assertStrictEquals as _b,
-} from "@std/assert/mod.ts";
+import { assertNotEquals as _a, assertStrictEquals as _b } from "@std/assert";
diff --git a/tests/testdata/coverage/no_snaps_included/no_snaps_included_test.ts b/tests/testdata/coverage/no_snaps_included/no_snaps_included_test.ts
index 5ec2117f0..b55091a3d 100644
--- a/tests/testdata/coverage/no_snaps_included/no_snaps_included_test.ts
+++ b/tests/testdata/coverage/no_snaps_included/no_snaps_included_test.ts
@@ -1,4 +1,4 @@
-import { assertSnapshot } from "@std/testing/snapshot.ts";
+import { assertSnapshot } from "@std/testing/snapshot";
import { truth } from "./no_snaps_included.ts";
Deno.test("the truth", () => {
diff --git a/tests/testdata/coverage/no_tests_included/foo.test.js b/tests/testdata/coverage/no_tests_included/foo.test.js
index e838badea..276375311 100644
--- a/tests/testdata/coverage/no_tests_included/foo.test.js
+++ b/tests/testdata/coverage/no_tests_included/foo.test.js
@@ -1,5 +1,5 @@
import { addNumbers } from "./foo.ts";
-import { assertEquals } from "@std/assert/mod.ts";
+import { assertEquals } from "@std/assert";
Deno.test("addNumbers works", () => {
assertEquals(addNumbers(1, 2), 3);
diff --git a/tests/testdata/coverage/no_tests_included/foo.test.mts b/tests/testdata/coverage/no_tests_included/foo.test.mts
index e838badea..276375311 100644
--- a/tests/testdata/coverage/no_tests_included/foo.test.mts
+++ b/tests/testdata/coverage/no_tests_included/foo.test.mts
@@ -1,5 +1,5 @@
import { addNumbers } from "./foo.ts";
-import { assertEquals } from "@std/assert/mod.ts";
+import { assertEquals } from "@std/assert";
Deno.test("addNumbers works", () => {
assertEquals(addNumbers(1, 2), 3);
diff --git a/tests/testdata/coverage/no_tests_included/foo.test.ts b/tests/testdata/coverage/no_tests_included/foo.test.ts
index e838badea..276375311 100644
--- a/tests/testdata/coverage/no_tests_included/foo.test.ts
+++ b/tests/testdata/coverage/no_tests_included/foo.test.ts
@@ -1,5 +1,5 @@
import { addNumbers } from "./foo.ts";
-import { assertEquals } from "@std/assert/mod.ts";
+import { assertEquals } from "@std/assert";
Deno.test("addNumbers works", () => {
assertEquals(addNumbers(1, 2), 3);
diff --git a/tests/testdata/coverage/no_transpiled_lines/index.ts b/tests/testdata/coverage/no_transpiled_lines/index.ts
index 5cda523fb..75788fc2b 100644
--- a/tests/testdata/coverage/no_transpiled_lines/index.ts
+++ b/tests/testdata/coverage/no_transpiled_lines/index.ts
@@ -1,3 +1,3 @@
-export { assertStrictEquals } from "@std/assert/mod.ts";
+export { assertStrictEquals } from "@std/assert";
export * from "./interface.ts";
diff --git a/tests/testdata/echo_server.ts b/tests/testdata/echo_server.ts
index b75805dbc..ee159f8be 100644
--- a/tests/testdata/echo_server.ts
+++ b/tests/testdata/echo_server.ts
@@ -1,4 +1,4 @@
-import { copy } from "@std/io/copy.ts";
+import { copy } from "@std/io/copy";
const addr = Deno.args[0] || "0.0.0.0:4544";
const [hostname, port] = addr.split(":");
const listener = Deno.listen({ hostname, port: Number(port) });
diff --git a/tests/testdata/run/import_meta/importmap.json b/tests/testdata/run/import_meta/importmap.json
index 7d583dd81..834bf5e46 100644
--- a/tests/testdata/run/import_meta/importmap.json
+++ b/tests/testdata/run/import_meta/importmap.json
@@ -1,6 +1,7 @@
{
"imports": {
- "@std/": "../../../util/std/",
+ "@std/assert/throws": "../../../util/std/assert/throws.ts",
+ "@std/internal/styles": "../../../util/std/internal/styles.ts",
"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 6e4d5be98..d0425826e 100644
--- a/tests/testdata/run/import_meta/main.ts
+++ b/tests/testdata/run/import_meta/main.ts
@@ -1,4 +1,4 @@
-import { assertThrows } from "@std/assert/mod.ts";
+import { assertThrows } from "@std/assert/throws";
import "http://localhost:4545/run/import_meta/other.ts";
import "./other.ts";
diff --git a/tests/testdata/run/onload/imported.ts b/tests/testdata/run/onload/imported.ts
index 38649b9b3..77d3da998 100644
--- a/tests/testdata/run/onload/imported.ts
+++ b/tests/testdata/run/onload/imported.ts
@@ -1,5 +1,5 @@
// deno-lint-ignore-file no-window-prefix
-import { assert } from "@std/assert/mod.ts";
+import { assert } from "@std/assert";
import "./nest_imported.ts";
const handler = (e: Event) => {
diff --git a/tests/testdata/run/onload/main.ts b/tests/testdata/run/onload/main.ts
index c0e120d96..69bd174fa 100644
--- a/tests/testdata/run/onload/main.ts
+++ b/tests/testdata/run/onload/main.ts
@@ -1,5 +1,5 @@
// deno-lint-ignore-file no-window-prefix no-prototype-builtins
-import { assert } from "@std/assert/mod.ts";
+import { assert } from "@std/assert";
import "./imported.ts";
assert(window.hasOwnProperty("onload"));
diff --git a/tests/testdata/run/onload/nest_imported.ts b/tests/testdata/run/onload/nest_imported.ts
index 98775d943..dbe313b9c 100644
--- a/tests/testdata/run/onload/nest_imported.ts
+++ b/tests/testdata/run/onload/nest_imported.ts
@@ -1,5 +1,5 @@
// deno-lint-ignore-file no-window-prefix
-import { assert } from "@std/assert/mod.ts";
+import { assert } from "@std/assert";
const handler = (e: Event) => {
assert(e.type === "beforeunload" ? e.cancelable : !e.cancelable);
diff --git a/tests/testdata/run/textproto.ts b/tests/testdata/run/textproto.ts
index d1b667c15..9e0f5f5f0 100644
--- a/tests/testdata/run/textproto.ts
+++ b/tests/testdata/run/textproto.ts
@@ -14,8 +14,8 @@
* @module
*/
-import type { BufReader, ReadLineResult } from "@std/io/buf_reader.ts";
-import { concat } from "@std/bytes/concat.ts";
+import type { BufReader, ReadLineResult } from "@std/io/buf-reader";
+import { concat } from "@std/bytes/concat";
// Constants created for DRY
const CHAR_SPACE: number = " ".charCodeAt(0);
diff --git a/tests/testdata/run/tls_connecttls.js b/tests/testdata/run/tls_connecttls.js
index 540dd5721..b44b950fd 100644
--- a/tests/testdata/run/tls_connecttls.js
+++ b/tests/testdata/run/tls_connecttls.js
@@ -1,5 +1,5 @@
-import { assert, assertEquals } from "@std/assert/mod.ts";
-import { BufReader, BufWriter } from "@std/io/mod.ts";
+import { assert, assertEquals } from "@std/assert";
+import { BufReader, BufWriter } from "@std/io";
import { TextProtoReader } from "./textproto.ts";
const encoder = new TextEncoder();
diff --git a/tests/testdata/run/tls_starttls.js b/tests/testdata/run/tls_starttls.js
index eb550d9be..3d9439811 100644
--- a/tests/testdata/run/tls_starttls.js
+++ b/tests/testdata/run/tls_starttls.js
@@ -1,6 +1,6 @@
-import { assert, assertEquals } from "@std/assert/mod.ts";
-import { BufReader } from "@std/io/buf_reader.ts";
-import { BufWriter } from "@std/io/buf_writer.ts";
+import { assert, assertEquals } from "@std/assert";
+import { BufReader } from "@std/io/buf-reader";
+import { BufWriter } from "@std/io/buf-writer";
import { TextProtoReader } from "./textproto.ts";
const encoder = new TextEncoder();
diff --git a/tests/testdata/run/websocket_server_idletimeout.ts b/tests/testdata/run/websocket_server_idletimeout.ts
index aa1da5ccd..c33fd9efb 100644
--- a/tests/testdata/run/websocket_server_idletimeout.ts
+++ b/tests/testdata/run/websocket_server_idletimeout.ts
@@ -1,4 +1,4 @@
-import { assertEquals } from "@std/assert/mod.ts";
+import { assertEquals } from "@std/assert";
const errorDeferred = Promise.withResolvers<void>();
const closeDeferred = Promise.withResolvers<void>();
diff --git a/tests/testdata/test/allow_all.ts b/tests/testdata/test/allow_all.ts
index 589f200df..01341d9e5 100644
--- a/tests/testdata/test/allow_all.ts
+++ b/tests/testdata/test/allow_all.ts
@@ -1,4 +1,4 @@
-import { assertEquals } from "@std/assert/mod.ts";
+import { assertEquals } from "@std/assert";
const permissions: Deno.PermissionName[] = [
"read",
diff --git a/tests/testdata/test/allow_none.ts b/tests/testdata/test/allow_none.ts
index 903a926ba..17a6f4014 100644
--- a/tests/testdata/test/allow_none.ts
+++ b/tests/testdata/test/allow_none.ts
@@ -1,4 +1,4 @@
-import { unreachable } from "@std/assert/mod.ts";
+import { unreachable } from "@std/assert";
const permissions: Deno.PermissionName[] = [
"read",
diff --git a/tests/testdata/workers/deno_worker.ts b/tests/testdata/workers/deno_worker.ts
index ca16d4fa4..5f78af6e2 100644
--- a/tests/testdata/workers/deno_worker.ts
+++ b/tests/testdata/workers/deno_worker.ts
@@ -1,4 +1,4 @@
-import { assert } from "@std/assert/mod.ts";
+import { assert } from "@std/assert";
onmessage = function (e) {
if (typeof self.Deno === "undefined") {
diff --git a/tests/unit/blob_test.ts b/tests/unit/blob_test.ts
index b05b5fb7c..b57825314 100644
--- a/tests/unit/blob_test.ts
+++ b/tests/unit/blob_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { assert, assertEquals, assertStringIncludes } from "./test_util.ts";
-import { concat } from "@std/bytes/concat.ts";
+import { concat } from "@std/bytes/concat";
Deno.test(function blobString() {
const b1 = new Blob(["Hello World"]);
diff --git a/tests/unit/broadcast_channel_test.ts b/tests/unit/broadcast_channel_test.ts
index 7e4d55848..dce5f1086 100644
--- a/tests/unit/broadcast_channel_test.ts
+++ b/tests/unit/broadcast_channel_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assertEquals } from "@std/assert/mod.ts";
+import { assertEquals } from "@std/assert";
Deno.test("BroadcastChannel worker", async () => {
const intercom = new BroadcastChannel("intercom");
diff --git a/tests/unit/buffer_test.ts b/tests/unit/buffer_test.ts
index 6d2123622..221574882 100644
--- a/tests/unit/buffer_test.ts
+++ b/tests/unit/buffer_test.ts
@@ -11,7 +11,7 @@ import {
assertRejects,
assertThrows,
} from "./test_util.ts";
-import { writeAllSync } from "@std/io/write_all.ts";
+import { writeAllSync } from "@std/io/write-all";
const MAX_SIZE = 2 ** 32 - 2;
// N controls how many iterations of certain checks are performed.
diff --git a/tests/unit/console_test.ts b/tests/unit/console_test.ts
index 4c9378bd4..957ad3ef9 100644
--- a/tests/unit/console_test.ts
+++ b/tests/unit/console_test.ts
@@ -14,7 +14,7 @@ import {
assertStringIncludes,
assertThrows,
} from "./test_util.ts";
-import { stripColor } from "@std/fmt/colors.ts";
+import { stripAnsiCode } from "@std/fmt/colors";
const customInspect = Symbol.for("Deno.customInspect");
const {
@@ -27,7 +27,7 @@ const {
} = Deno[Deno.internal];
function stringify(...args: unknown[]): string {
- return stripColor(inspectArgs(args).replace(/\n$/, ""));
+ return stripAnsiCode(inspectArgs(args).replace(/\n$/, ""));
}
interface Css {
@@ -372,7 +372,7 @@ Deno.test(function consoleTestStringifyCircular() {
}`,
);
// test inspect is working the same
- assertEquals(stripColor(Deno.inspect(nestedObj)), nestedObjExpected);
+ assertEquals(stripAnsiCode(Deno.inspect(nestedObj)), nestedObjExpected);
});
Deno.test(function consoleTestStringifyMultipleCircular() {
@@ -451,7 +451,7 @@ Deno.test(function consoleTestStringifyFunctionWithProperties() {
);
assertEquals(
- stripColor(Deno.inspect(Array, { showHidden: true })),
+ stripAnsiCode(Deno.inspect(Array, { showHidden: true })),
`<ref *1> [Function: Array] {
[length]: 1,
[name]: "Array",
@@ -529,24 +529,24 @@ Deno.test(function consoleTestStringifyWithDepth() {
// deno-lint-ignore no-explicit-any
const nestedObj: any = { a: { b: { c: { d: { e: { f: 42 } } } } } };
assertEquals(
- stripColor(inspectArgs([nestedObj], { depth: 3 })),
+ stripAnsiCode(inspectArgs([nestedObj], { depth: 3 })),
"{\n a: { b: { c: { d: [Object] } } }\n}",
);
assertEquals(
- stripColor(inspectArgs([nestedObj], { depth: 4 })),
+ stripAnsiCode(inspectArgs([nestedObj], { depth: 4 })),
"{\n a: {\n b: { c: { d: { e: [Object] } } }\n }\n}",
);
assertEquals(
- stripColor(inspectArgs([nestedObj], { depth: 0 })),
+ stripAnsiCode(inspectArgs([nestedObj], { depth: 0 })),
"{ a: [Object] }",
);
assertEquals(
- stripColor(inspectArgs([nestedObj])),
+ stripAnsiCode(inspectArgs([nestedObj])),
"{\n a: {\n b: { c: { d: { e: [Object] } } }\n }\n}",
);
// test inspect is working the same way
assertEquals(
- stripColor(Deno.inspect(nestedObj, { depth: 4 })),
+ stripAnsiCode(Deno.inspect(nestedObj, { depth: 4 })),
"{\n a: {\n b: { c: { d: { e: [Object] } } }\n }\n}",
);
});
@@ -1032,11 +1032,13 @@ Deno.test(function consoleTestIteratorValueAreNotConsumed() {
Deno.test(function consoleTestWeakSetAndWeakMapWithShowHidden() {
assertEquals(
- stripColor(Deno.inspect(new WeakSet([{}]), { showHidden: true })),
+ stripAnsiCode(Deno.inspect(new WeakSet([{}]), { showHidden: true })),
"WeakSet { {} }",
);
assertEquals(
- stripColor(Deno.inspect(new WeakMap([[{}, "foo"]]), { showHidden: true })),
+ stripAnsiCode(
+ Deno.inspect(new WeakMap([[{}, "foo"]]), { showHidden: true }),
+ ),
'WeakMap { {} => "foo" }',
);
});
@@ -1195,7 +1197,10 @@ Deno.test(function consoleTestWithObjectFormatSpecifier() {
Deno.test(function consoleTestWithStyleSpecifier() {
assertEquals(stringify("%cfoo%cbar"), "%cfoo%cbar");
assertEquals(stringify("%cfoo%cbar", ""), "foo%cbar");
- assertEquals(stripColor(stringify("%cfoo%cbar", "", "color: red")), "foobar");
+ assertEquals(
+ stripAnsiCode(stringify("%cfoo%cbar", "", "color: red")),
+ "foobar",
+ );
});
Deno.test(function consoleParseCssColor() {
@@ -1532,7 +1537,7 @@ Deno.test(function consoleTable() {
mockConsole((console, out) => {
console.table({ a: "test", b: 1 });
assertEquals(
- stripColor(out.toString()),
+ stripAnsiCode(out.toString()),
`\
β”Œβ”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ (idx) β”‚ Values β”‚
@@ -1546,7 +1551,7 @@ Deno.test(function consoleTable() {
mockConsole((console, out) => {
console.table({ a: { b: 10 }, b: { b: 20, c: 30 } }, ["c"]);
assertEquals(
- stripColor(out.toString()),
+ stripAnsiCode(out.toString()),
`\
β”Œβ”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”
β”‚ (idx) β”‚ c β”‚
@@ -1560,7 +1565,7 @@ Deno.test(function consoleTable() {
mockConsole((console, out) => {
console.table([[1, 1], [234, 2.34], [56789, 56.789]]);
assertEquals(
- stripColor(out.toString()),
+ stripAnsiCode(out.toString()),
`\
β”Œβ”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ (idx) β”‚ 0 β”‚ 1 β”‚
@@ -1575,7 +1580,7 @@ Deno.test(function consoleTable() {
mockConsole((console, out) => {
console.table([1, 2, [3, [4]], [5, 6], [[7], [8]]]);
assertEquals(
- stripColor(out.toString()),
+ stripAnsiCode(out.toString()),
`\
β”Œβ”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ (idx) β”‚ 0 β”‚ 1 β”‚ Values β”‚
@@ -1592,7 +1597,7 @@ Deno.test(function consoleTable() {
mockConsole((console, out) => {
console.table(new Set([1, 2, 3, "test"]));
assertEquals(
- stripColor(out.toString()),
+ stripAnsiCode(out.toString()),
`\
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ (iter idx) β”‚ Values β”‚
@@ -1613,7 +1618,7 @@ Deno.test(function consoleTable() {
]),
);
assertEquals(
- stripColor(out.toString()),
+ stripAnsiCode(out.toString()),
`\
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ (iter idx) β”‚ Key β”‚ Values β”‚
@@ -1633,7 +1638,7 @@ Deno.test(function consoleTable() {
h: new Map([[1, "one"]]),
});
assertEquals(
- stripColor(out.toString()),
+ stripAnsiCode(out.toString()),
`\
β”Œβ”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ (idx) β”‚ c β”‚ e β”‚ Values β”‚
@@ -1656,7 +1661,7 @@ Deno.test(function consoleTable() {
["test", { b: 20, c: "test" }],
]);
assertEquals(
- stripColor(out.toString()),
+ stripAnsiCode(out.toString()),
`\
β”Œβ”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ (idx) β”‚ 0 β”‚ 1 β”‚ a β”‚ Values β”‚
@@ -1673,7 +1678,7 @@ Deno.test(function consoleTable() {
mockConsole((console, out) => {
console.table([]);
assertEquals(
- stripColor(out.toString()),
+ stripAnsiCode(out.toString()),
`\
β”Œβ”€β”€β”€β”€β”€β”€β”€β”
β”‚ (idx) β”‚
@@ -1685,7 +1690,7 @@ Deno.test(function consoleTable() {
mockConsole((console, out) => {
console.table({});
assertEquals(
- stripColor(out.toString()),
+ stripAnsiCode(out.toString()),
`\
β”Œβ”€β”€β”€β”€β”€β”€β”€β”
β”‚ (idx) β”‚
@@ -1697,7 +1702,7 @@ Deno.test(function consoleTable() {
mockConsole((console, out) => {
console.table(new Set());
assertEquals(
- stripColor(out.toString()),
+ stripAnsiCode(out.toString()),
`\
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ (iter idx) β”‚
@@ -1709,7 +1714,7 @@ Deno.test(function consoleTable() {
mockConsole((console, out) => {
console.table(new Map());
assertEquals(
- stripColor(out.toString()),
+ stripAnsiCode(out.toString()),
`\
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ (iter idx) β”‚
@@ -1725,7 +1730,7 @@ Deno.test(function consoleTable() {
mockConsole((console, out) => {
console.table(["Hello", "δ½ ε₯½", "AmapΓ‘"]);
assertEquals(
- stripColor(out.toString()),
+ stripAnsiCode(out.toString()),
`\
β”Œβ”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ (idx) β”‚ Values β”‚
@@ -1743,7 +1748,7 @@ Deno.test(function consoleTable() {
[3, 4],
]);
assertEquals(
- stripColor(out.toString()),
+ stripAnsiCode(out.toString()),
`\
β”Œβ”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”¬β”€β”€β”€β”
β”‚ (idx) β”‚ 0 β”‚ 1 β”‚
@@ -1757,7 +1762,7 @@ Deno.test(function consoleTable() {
mockConsole((console, out) => {
console.table({ 1: { a: 4, b: 5 }, 2: null, 3: { b: 6, c: 7 } }, ["b"]);
assertEquals(
- stripColor(out.toString()),
+ stripAnsiCode(out.toString()),
`\
β”Œβ”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”
β”‚ (idx) β”‚ b β”‚
@@ -1772,7 +1777,7 @@ Deno.test(function consoleTable() {
mockConsole((console, out) => {
console.table([{ a: 0 }, { a: 1, b: 1 }, { a: 2 }, { a: 3, b: 3 }]);
assertEquals(
- stripColor(out.toString()),
+ stripAnsiCode(out.toString()),
`\
β”Œβ”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”¬β”€β”€β”€β”
β”‚ (idx) β”‚ a β”‚ b β”‚
@@ -1791,7 +1796,7 @@ Deno.test(function consoleTable() {
["a", "b", "c"],
);
assertEquals(
- stripColor(out.toString()),
+ stripAnsiCode(out.toString()),
`\
β”Œβ”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”¬β”€β”€β”€β”¬β”€β”€β”€β”
β”‚ (idx) β”‚ a β”‚ b β”‚ c β”‚
@@ -1829,7 +1834,7 @@ Deno.test(function consoleLogShouldNotThrowError() {
Deno.test(function consoleLogShouldNotThrowErrorWhenInvalidCssColorsAreGiven() {
mockConsole((console, out) => {
console.log("%cfoo", "color: foo; background-color: bar;");
- assertEquals(stripColor(out.toString()), "foo\n");
+ assertEquals(stripAnsiCode(out.toString()), "foo\n");
});
});
@@ -1838,7 +1843,7 @@ Deno.test(function consoleLogShouldNotThrowErrorWhenInvalidDateIsPassed() {
mockConsole((console, out) => {
const invalidDate = new Date("test");
console.log(invalidDate);
- assertEquals(stripColor(out.toString()), "Invalid Date\n");
+ assertEquals(stripAnsiCode(out.toString()), "Invalid Date\n");
});
});
@@ -1847,7 +1852,7 @@ Deno.test(function consoleLogShouldNotThrowErrorWhenInputIsProxiedSet() {
mockConsole((console, out) => {
const proxiedSet = new Proxy(new Set([1, 2]), {});
console.log(proxiedSet);
- assertEquals(stripColor(out.toString()), "Set(2) { 1, 2 }\n");
+ assertEquals(stripAnsiCode(out.toString()), "Set(2) { 1, 2 }\n");
});
});
@@ -1856,7 +1861,7 @@ Deno.test(function consoleLogShouldNotThrowErrorWhenInputIsProxiedMap() {
mockConsole((console, out) => {
const proxiedMap = new Proxy(new Map([[1, 1], [2, 2]]), {});
console.log(proxiedMap);
- assertEquals(stripColor(out.toString()), "Map(2) { 1 => 1, 2 => 2 }\n");
+ assertEquals(stripAnsiCode(out.toString()), "Map(2) { 1 => 1, 2 => 2 }\n");
});
});
@@ -1865,7 +1870,7 @@ Deno.test(function consoleLogShouldNotThrowErrorWhenInputIsProxiedTypedArray() {
mockConsole((console, out) => {
const proxiedUint8Array = new Proxy(new Uint8Array([1, 2]), {});
console.log(proxiedUint8Array);
- assertEquals(stripColor(out.toString()), "Uint8Array(2) [ 1, 2 ]\n");
+ assertEquals(stripAnsiCode(out.toString()), "Uint8Array(2) [ 1, 2 ]\n");
});
});
@@ -1874,7 +1879,7 @@ Deno.test(function consoleLogShouldNotThrowErrorWhenInputIsProxiedRegExp() {
mockConsole((console, out) => {
const proxiedRegExp = new Proxy(/aaaa/, {});
console.log(proxiedRegExp);
- assertEquals(stripColor(out.toString()), "/aaaa/\n");
+ assertEquals(stripAnsiCode(out.toString()), "/aaaa/\n");
});
});
@@ -1883,7 +1888,7 @@ Deno.test(function consoleLogShouldNotThrowErrorWhenInputIsProxiedDate() {
mockConsole((console, out) => {
const proxiedDate = new Proxy(new Date("2022-09-24T15:59:39.529Z"), {});
console.log(proxiedDate);
- assertEquals(stripColor(out.toString()), "2022-09-24T15:59:39.529Z\n");
+ assertEquals(stripAnsiCode(out.toString()), "2022-09-24T15:59:39.529Z\n");
});
});
@@ -1892,7 +1897,7 @@ Deno.test(function consoleLogShouldNotThrowErrorWhenInputIsProxiedError() {
mockConsole((console, out) => {
const proxiedError = new Proxy(new Error("message"), {});
console.log(proxiedError);
- assertStringIncludes(stripColor(out.toString()), "Error: message\n");
+ assertStringIncludes(stripAnsiCode(out.toString()), "Error: message\n");
});
});
@@ -1931,18 +1936,18 @@ Deno.test(function consoleTrace() {
Deno.test(function inspectString() {
assertEquals(
- stripColor(Deno.inspect("\0")),
+ stripAnsiCode(Deno.inspect("\0")),
`"\\x00"`,
);
assertEquals(
- stripColor(Deno.inspect("\x1b[2J")),
+ stripAnsiCode(Deno.inspect("\x1b[2J")),
`"\\x1b[2J"`,
);
});
Deno.test(function inspectGetters() {
assertEquals(
- stripColor(Deno.inspect({
+ stripAnsiCode(Deno.inspect({
get foo() {
return 0;
},
@@ -1951,7 +1956,7 @@ Deno.test(function inspectGetters() {
);
assertEquals(
- stripColor(Deno.inspect({
+ stripAnsiCode(Deno.inspect({
get foo() {
return 0;
},
@@ -1976,15 +1981,15 @@ Deno.test(function inspectPrototype() {
Deno.test(function inspectSorted() {
assertEquals(
- stripColor(Deno.inspect({ b: 2, a: 1 }, { sorted: true })),
+ stripAnsiCode(Deno.inspect({ b: 2, a: 1 }, { sorted: true })),
"{ a: 1, b: 2 }",
);
assertEquals(
- stripColor(Deno.inspect(new Set(["b", "a"]), { sorted: true })),
+ stripAnsiCode(Deno.inspect(new Set(["b", "a"]), { sorted: true })),
`Set(2) { "a", "b" }`,
);
assertEquals(
- stripColor(Deno.inspect(
+ stripAnsiCode(Deno.inspect(
new Map([
["b", 2],
["a", 1],
@@ -1997,7 +2002,7 @@ Deno.test(function inspectSorted() {
Deno.test(function inspectTrailingComma() {
assertEquals(
- stripColor(Deno.inspect(
+ stripAnsiCode(Deno.inspect(
[
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
@@ -2010,7 +2015,7 @@ Deno.test(function inspectTrailingComma() {
]`,
);
assertEquals(
- stripColor(Deno.inspect(
+ stripAnsiCode(Deno.inspect(
{
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa: 1,
bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb: 2,
@@ -2023,7 +2028,7 @@ Deno.test(function inspectTrailingComma() {
}`,
);
assertEquals(
- stripColor(Deno.inspect(
+ stripAnsiCode(Deno.inspect(
new Set([
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
@@ -2036,7 +2041,7 @@ Deno.test(function inspectTrailingComma() {
}`,
);
assertEquals(
- stripColor(Deno.inspect(
+ stripAnsiCode(Deno.inspect(
new Map([
["aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", 1],
["bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", 2],
@@ -2052,7 +2057,7 @@ Deno.test(function inspectTrailingComma() {
Deno.test(function inspectCompact() {
assertEquals(
- stripColor(Deno.inspect({ a: 1, b: 2 }, { compact: false })),
+ stripAnsiCode(Deno.inspect({ a: 1, b: 2 }, { compact: false })),
`{
a: 1,
b: 2
@@ -2062,15 +2067,15 @@ Deno.test(function inspectCompact() {
Deno.test(function inspectIterableLimit() {
assertEquals(
- stripColor(Deno.inspect(["a", "b", "c"], { iterableLimit: 2 })),
+ stripAnsiCode(Deno.inspect(["a", "b", "c"], { iterableLimit: 2 })),
`[ "a", "b", ... 1 more item ]`,
);
assertEquals(
- stripColor(Deno.inspect(new Set(["a", "b", "c"]), { iterableLimit: 2 })),
+ stripAnsiCode(Deno.inspect(new Set(["a", "b", "c"]), { iterableLimit: 2 })),
`Set(3) { "a", "b", ... 1 more item }`,
);
assertEquals(
- stripColor(Deno.inspect(
+ stripAnsiCode(Deno.inspect(
new Map([
["a", 1],
["b", 2],
@@ -2084,19 +2089,19 @@ Deno.test(function inspectIterableLimit() {
Deno.test(function inspectProxy() {
assertEquals(
- stripColor(Deno.inspect(
+ stripAnsiCode(Deno.inspect(
new Proxy([1, 2, 3], {}),
)),
"[ 1, 2, 3 ]",
);
assertEquals(
- stripColor(Deno.inspect(
+ stripAnsiCode(Deno.inspect(
new Proxy({ key: "value" }, {}),
)),
`{ key: "value" }`,
);
assertEquals(
- stripColor(Deno.inspect(
+ stripAnsiCode(Deno.inspect(
new Proxy({}, {
get(_target, key) {
if (key === Symbol.toStringTag) {
@@ -2120,14 +2125,14 @@ Deno.test(function inspectProxy() {
`Object [MyProxy] { prop1: 5, prop2: 5 }`,
);
assertEquals(
- stripColor(Deno.inspect(
+ stripAnsiCode(Deno.inspect(
new Proxy([1, 2, 3], { get() {} }),
{ showProxy: true },
)),
"Proxy [ [ 1, 2, 3 ], { get: [Function: get] } ]",
);
assertEquals(
- stripColor(Deno.inspect(
+ stripAnsiCode(Deno.inspect(
new Proxy({ a: 1 }, {
set(): boolean {
return false;
@@ -2138,7 +2143,7 @@ Deno.test(function inspectProxy() {
"Proxy [ { a: 1 }, { set: [Function: set] } ]",
);
assertEquals(
- stripColor(Deno.inspect(
+ stripAnsiCode(Deno.inspect(
new Proxy([1, 2, 3, 4, 5, 6, 7], { get() {} }),
{ showProxy: true },
)),
@@ -2151,7 +2156,7 @@ Deno.test(function inspectProxy() {
]`,
);
assertEquals(
- stripColor(Deno.inspect(
+ stripAnsiCode(Deno.inspect(
new Proxy(function fn() {}, { get() {} }),
{ showProxy: true },
)),
@@ -2166,15 +2171,15 @@ Deno.test(function inspectError() {
});
assertStringIncludes(
- stripColor(Deno.inspect(error1)),
+ stripAnsiCode(Deno.inspect(error1)),
"Error: This is an error",
);
assertStringIncludes(
- stripColor(Deno.inspect(error2)),
+ stripAnsiCode(Deno.inspect(error2)),
"Error: This is an error",
);
assertStringIncludes(
- stripColor(Deno.inspect(error2)),
+ stripAnsiCode(Deno.inspect(error2)),
"Caused by Error: This is a cause error",
);
});
@@ -2189,19 +2194,19 @@ Deno.test(function inspectErrorCircular() {
error2.cause.cause = error2;
assertStringIncludes(
- stripColor(Deno.inspect(error1)),
+ stripAnsiCode(Deno.inspect(error1)),
"Error: This is an error",
);
assertStringIncludes(
- stripColor(Deno.inspect(error2)),
+ stripAnsiCode(Deno.inspect(error2)),
"<ref *1> Error: This is an error",
);
assertStringIncludes(
- stripColor(Deno.inspect(error2)),
+ stripAnsiCode(Deno.inspect(error2)),
"Caused by Error: This is a cause error",
);
assertStringIncludes(
- stripColor(Deno.inspect(error2)),
+ stripAnsiCode(Deno.inspect(error2)),
"Caused by [Circular *1]",
);
});
@@ -2213,11 +2218,11 @@ Deno.test(function inspectErrorWithCauseFormat() {
},
});
assertStringIncludes(
- stripColor(Deno.inspect(error)),
+ stripAnsiCode(Deno.inspect(error)),
"Error: This is an error",
);
assertStringIncludes(
- stripColor(Deno.inspect(error)),
+ stripAnsiCode(Deno.inspect(error)),
"Caused by { code: 100500 }",
);
});
diff --git a/tests/unit/fetch_test.ts b/tests/unit/fetch_test.ts
index 39cadcb44..09cbb5cd2 100644
--- a/tests/unit/fetch_test.ts
+++ b/tests/unit/fetch_test.ts
@@ -8,7 +8,7 @@ import {
fail,
unimplemented,
} from "./test_util.ts";
-import { Buffer } from "@std/io/buffer.ts";
+import { Buffer } from "@std/io/buffer";
const listenPort = 4506;
diff --git a/tests/unit/files_test.ts b/tests/unit/files_test.ts
index b25b2fd5d..754c6fb15 100644
--- a/tests/unit/files_test.ts
+++ b/tests/unit/files_test.ts
@@ -8,7 +8,7 @@ import {
assertRejects,
assertThrows,
} from "./test_util.ts";
-import { copy } from "@std/io/copy.ts";
+import { copy } from "@std/io/copy";
// Note tests for Deno.FsFile.setRaw is in integration tests.
diff --git a/tests/unit/http_test.ts b/tests/unit/http_test.ts
index 03c30965f..6d3543e44 100644
--- a/tests/unit/http_test.ts
+++ b/tests/unit/http_test.ts
@@ -2,7 +2,7 @@
// deno-lint-ignore-file no-deprecated-deno-api
-import { Buffer, BufReader, BufWriter } from "@std/io/mod.ts";
+import { Buffer, BufReader, BufWriter } from "@std/io";
import { TextProtoReader } from "../testdata/run/textproto.ts";
import {
assert,
@@ -13,7 +13,7 @@ import {
delay,
fail,
} from "./test_util.ts";
-import { join } from "@std/path/mod.ts";
+import { join } from "@std/path";
const listenPort = 4507;
const listenPort2 = 4508;
diff --git a/tests/unit/io_test.ts b/tests/unit/io_test.ts
index aadb82297..5b55729dd 100644
--- a/tests/unit/io_test.ts
+++ b/tests/unit/io_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { assertEquals } from "./test_util.ts";
-import { Buffer } from "@std/io/buffer.ts";
+import { Buffer } from "@std/io/buffer";
const DEFAULT_BUF_SIZE = 32 * 1024;
diff --git a/tests/unit/kv_test.ts b/tests/unit/kv_test.ts
index c39e0d0fc..28d79d1f9 100644
--- a/tests/unit/kv_test.ts
+++ b/tests/unit/kv_test.ts
@@ -7,7 +7,7 @@ import {
assertRejects,
assertThrows,
} from "./test_util.ts";
-import { assertType, IsExact } from "@std/testing/types.ts";
+import { assertType, IsExact } from "@std/testing/types";
const sleep = (time: number) => new Promise((r) => setTimeout(r, time));
diff --git a/tests/unit/message_channel_test.ts b/tests/unit/message_channel_test.ts
index 87023bb1f..0fcbc5e95 100644
--- a/tests/unit/message_channel_test.ts
+++ b/tests/unit/message_channel_test.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// NOTE: these are just sometests to test the TypeScript types. Real coverage is
// provided by WPT.
-import { assert, assertEquals } from "@std/assert/mod.ts";
+import { assert, assertEquals } from "@std/assert";
Deno.test("messagechannel", async () => {
const mc = new MessageChannel();
diff --git a/tests/unit/serve_test.ts b/tests/unit/serve_test.ts
index ee87d8189..4a7d53e1b 100644
--- a/tests/unit/serve_test.ts
+++ b/tests/unit/serve_test.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assertMatch, assertRejects } from "@std/assert/mod.ts";
-import { Buffer, BufReader, BufWriter } from "@std/io/mod.ts";
+import { assertMatch, assertRejects } from "@std/assert";
+import { Buffer, BufReader, BufWriter } from "@std/io";
import { TextProtoReader } from "../testdata/run/textproto.ts";
import {
assert,
diff --git a/tests/unit/test_util.ts b/tests/unit/test_util.ts
index db2585ebd..e45a963e9 100644
--- a/tests/unit/test_util.ts
+++ b/tests/unit/test_util.ts
@@ -1,9 +1,9 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import * as colors from "@std/fmt/colors.ts";
-import { assert } from "@std/assert/mod.ts";
+import * as colors from "@std/fmt/colors";
+import { assert } from "@std/assert";
export { colors };
-import { join, resolve } from "@std/path/mod.ts";
+import { join, resolve } from "@std/path";
export {
assert,
assertEquals,
@@ -20,10 +20,10 @@ export {
fail,
unimplemented,
unreachable,
-} from "@std/assert/mod.ts";
-export { delay } from "@std/async/delay.ts";
-export { readLines } from "@std/io/read_lines.ts";
-export { parse as parseArgs } from "@std/flags/mod.ts";
+} from "@std/assert";
+export { delay } from "@std/async/delay";
+export { readLines } from "@std/io/read-lines";
+export { parseArgs } from "@std/cli/parse-args";
export function pathToAbsoluteFileUrl(path: string): URL {
path = resolve(path);
diff --git a/tests/unit/tls_test.ts b/tests/unit/tls_test.ts
index 5be05b73e..34061bb21 100644
--- a/tests/unit/tls_test.ts
+++ b/tests/unit/tls_test.ts
@@ -7,9 +7,9 @@ import {
assertStrictEquals,
assertThrows,
} from "./test_util.ts";
-import { BufReader, BufWriter } from "@std/io/mod.ts";
-import { readAll } from "@std/io/read_all.ts";
-import { writeAll } from "@std/io/write_all.ts";
+import { BufReader, BufWriter } from "@std/io";
+import { readAll } from "@std/io/read-all";
+import { writeAll } from "@std/io/write-all";
import { TextProtoReader } from "../testdata/run/textproto.ts";
const encoder = new TextEncoder();
diff --git a/tests/unit/urlpattern_test.ts b/tests/unit/urlpattern_test.ts
index 2b635a513..3c1fb0cf1 100644
--- a/tests/unit/urlpattern_test.ts
+++ b/tests/unit/urlpattern_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { assert, assertEquals } from "./test_util.ts";
-import { assertType, IsExact } from "@std/testing/types.ts";
+import { assertType, IsExact } from "@std/testing/types";
Deno.test(function urlPatternFromString() {
const pattern = new URLPattern("https://deno.land/foo/:bar");
diff --git a/tests/unit/websocketstream_test.ts.disabled b/tests/unit/websocketstream_test.ts.disabled
index 19941e08e..4f8c321c9 100644
--- a/tests/unit/websocketstream_test.ts.disabled
+++ b/tests/unit/websocketstream_test.ts.disabled
@@ -6,7 +6,7 @@ import {
assertRejects,
assertThrows,
unreachable,
-} from "@std/assert/mod.ts";
+} from "@std/assert";
Deno.test("fragment", () => {
assertThrows(() => new WebSocketStream("ws://localhost:4242/#"));
diff --git a/tests/unit/worker_test.ts b/tests/unit/worker_test.ts
index a66eb69a9..526618d54 100644
--- a/tests/unit/worker_test.ts
+++ b/tests/unit/worker_test.ts
@@ -2,12 +2,7 @@
// Requires to be run with `--allow-net` flag
-import {
- assert,
- assertEquals,
- assertMatch,
- assertThrows,
-} from "@std/assert/mod.ts";
+import { assert, assertEquals, assertMatch, assertThrows } from "@std/assert";
function resolveWorker(worker: string): string {
return import.meta.resolve(`../testdata/workers/${worker}`);
diff --git a/tests/unit_node/_fs/_fs_access_test.ts b/tests/unit_node/_fs/_fs_access_test.ts
index 713a8d9a7..f8010b0b8 100644
--- a/tests/unit_node/_fs/_fs_access_test.ts
+++ b/tests/unit_node/_fs/_fs_access_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import * as fs from "node:fs";
-import { assertRejects, assertThrows } from "@std/assert/mod.ts";
+import { assertRejects, assertThrows } from "@std/assert";
Deno.test(
"[node/fs.access] Uses the owner permission when the user is the owner",
diff --git a/tests/unit_node/_fs/_fs_appendFile_test.ts b/tests/unit_node/_fs/_fs_appendFile_test.ts
index edc4dfb94..f50eba856 100644
--- a/tests/unit_node/_fs/_fs_appendFile_test.ts
+++ b/tests/unit_node/_fs/_fs_appendFile_test.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assertEquals, assertThrows, fail } from "@std/assert/mod.ts";
+import { assertEquals, assertThrows, fail } from "@std/assert";
import { appendFile, appendFileSync } from "node:fs";
-import { fromFileUrl } from "@std/path/mod.ts";
+import { fromFileUrl } from "@std/path";
import { assertCallbackErrorUncaught } from "../_test_utils.ts";
const decoder = new TextDecoder("utf-8");
diff --git a/tests/unit_node/_fs/_fs_chmod_test.ts b/tests/unit_node/_fs/_fs_chmod_test.ts
index 90ab6761b..97dc9ecdd 100644
--- a/tests/unit_node/_fs/_fs_chmod_test.ts
+++ b/tests/unit_node/_fs/_fs_chmod_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assert, assertRejects, assertThrows, fail } from "@std/assert/mod.ts";
+import { assert, assertRejects, assertThrows, fail } from "@std/assert";
import { assertCallbackErrorUncaught } from "../_test_utils.ts";
import { chmod, chmodSync } from "node:fs";
diff --git a/tests/unit_node/_fs/_fs_chown_test.ts b/tests/unit_node/_fs/_fs_chown_test.ts
index 6059e882d..6cb2f576a 100644
--- a/tests/unit_node/_fs/_fs_chown_test.ts
+++ b/tests/unit_node/_fs/_fs_chown_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assertEquals, fail } from "@std/assert/mod.ts";
+import { assertEquals, fail } from "@std/assert";
import { assertCallbackErrorUncaught } from "../_test_utils.ts";
import { chown, chownSync } from "node:fs";
diff --git a/tests/unit_node/_fs/_fs_close_test.ts b/tests/unit_node/_fs/_fs_close_test.ts
index 085f387c6..e41711126 100644
--- a/tests/unit_node/_fs/_fs_close_test.ts
+++ b/tests/unit_node/_fs/_fs_close_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assert, assertThrows, fail } from "@std/assert/mod.ts";
+import { assert, assertThrows, fail } from "@std/assert";
import { assertCallbackErrorUncaught } from "../_test_utils.ts";
import { close, closeSync } from "node:fs";
diff --git a/tests/unit_node/_fs/_fs_copy_test.ts b/tests/unit_node/_fs/_fs_copy_test.ts
index adc002187..22f30ea37 100644
--- a/tests/unit_node/_fs/_fs_copy_test.ts
+++ b/tests/unit_node/_fs/_fs_copy_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import * as path from "@std/path/mod.ts";
-import { assert } from "@std/assert/mod.ts";
+import * as path from "@std/path";
+import { assert } from "@std/assert";
import { assertCallbackErrorUncaught } from "../_test_utils.ts";
import { copyFile, copyFileSync, cpSync, existsSync } from "node:fs";
diff --git a/tests/unit_node/_fs/_fs_dir_test.ts b/tests/unit_node/_fs/_fs_dir_test.ts
index e108960fa..0f41543e9 100644
--- a/tests/unit_node/_fs/_fs_dir_test.ts
+++ b/tests/unit_node/_fs/_fs_dir_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assert, assertEquals, fail } from "@std/assert/mod.ts";
+import { assert, assertEquals, fail } from "@std/assert";
import { assertCallbackErrorUncaught } from "../_test_utils.ts";
import { Dir as DirOrig, type Dirent } from "node:fs";
diff --git a/tests/unit_node/_fs/_fs_dirent_test.ts b/tests/unit_node/_fs/_fs_dirent_test.ts
index 853888925..093617faf 100644
--- a/tests/unit_node/_fs/_fs_dirent_test.ts
+++ b/tests/unit_node/_fs/_fs_dirent_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assert, assertEquals, assertThrows } from "@std/assert/mod.ts";
+import { assert, assertEquals, assertThrows } from "@std/assert";
import { Dirent as Dirent_ } from "node:fs";
// deno-lint-ignore no-explicit-any
diff --git a/tests/unit_node/_fs/_fs_exists_test.ts b/tests/unit_node/_fs/_fs_exists_test.ts
index 04411e61b..7ed7584ae 100644
--- a/tests/unit_node/_fs/_fs_exists_test.ts
+++ b/tests/unit_node/_fs/_fs_exists_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assert, assertEquals, assertStringIncludes } from "@std/assert/mod.ts";
+import { assert, assertEquals, assertStringIncludes } from "@std/assert";
import { exists, existsSync } from "node:fs";
import { promisify } from "node:util";
diff --git a/tests/unit_node/_fs/_fs_fdatasync_test.ts b/tests/unit_node/_fs/_fs_fdatasync_test.ts
index 2c054cac3..6e0143d64 100644
--- a/tests/unit_node/_fs/_fs_fdatasync_test.ts
+++ b/tests/unit_node/_fs/_fs_fdatasync_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assertEquals, fail } from "@std/assert/mod.ts";
+import { assertEquals, fail } from "@std/assert";
import { fdatasync, fdatasyncSync } from "node:fs";
Deno.test({
diff --git a/tests/unit_node/_fs/_fs_fstat_test.ts b/tests/unit_node/_fs/_fs_fstat_test.ts
index b0c767bcf..46ab508cf 100644
--- a/tests/unit_node/_fs/_fs_fstat_test.ts
+++ b/tests/unit_node/_fs/_fs_fstat_test.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { fstat, fstatSync } from "node:fs";
-import { fail } from "@std/assert/mod.ts";
+import { fail } from "@std/assert";
import { assertStats, assertStatsBigInt } from "./_fs_stat_test.ts";
import type { BigIntStats, Stats } from "node:fs";
diff --git a/tests/unit_node/_fs/_fs_fsync_test.ts b/tests/unit_node/_fs/_fs_fsync_test.ts
index 855abcd16..3a162f97c 100644
--- a/tests/unit_node/_fs/_fs_fsync_test.ts
+++ b/tests/unit_node/_fs/_fs_fsync_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assertEquals, fail } from "@std/assert/mod.ts";
+import { assertEquals, fail } from "@std/assert";
import { fsync, fsyncSync } from "node:fs";
Deno.test({
diff --git a/tests/unit_node/_fs/_fs_ftruncate_test.ts b/tests/unit_node/_fs/_fs_ftruncate_test.ts
index 238f51c0c..78cbe630a 100644
--- a/tests/unit_node/_fs/_fs_ftruncate_test.ts
+++ b/tests/unit_node/_fs/_fs_ftruncate_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assertEquals, assertThrows, fail } from "@std/assert/mod.ts";
+import { assertEquals, assertThrows, fail } from "@std/assert";
import { ftruncate, ftruncateSync } from "node:fs";
Deno.test({
diff --git a/tests/unit_node/_fs/_fs_futimes_test.ts b/tests/unit_node/_fs/_fs_futimes_test.ts
index 2f9bd516f..48f949b1a 100644
--- a/tests/unit_node/_fs/_fs_futimes_test.ts
+++ b/tests/unit_node/_fs/_fs_futimes_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assertEquals, assertThrows, fail } from "@std/assert/mod.ts";
+import { assertEquals, assertThrows, fail } from "@std/assert";
import { futimes, futimesSync } from "node:fs";
const randomDate = new Date(Date.now() + 1000);
diff --git a/tests/unit_node/_fs/_fs_handle_test.ts b/tests/unit_node/_fs/_fs_handle_test.ts
index 91dabbece..ea6af9c29 100644
--- a/tests/unit_node/_fs/_fs_handle_test.ts
+++ b/tests/unit_node/_fs/_fs_handle_test.ts
@@ -1,8 +1,8 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import * as path from "@std/path/mod.ts";
+import * as path from "@std/path";
import { Buffer } from "node:buffer";
import * as fs from "node:fs/promises";
-import { assert, assertEquals } from "@std/assert/mod.ts";
+import { assert, assertEquals } from "@std/assert";
const moduleDir = path.dirname(path.fromFileUrl(import.meta.url));
const testData = path.resolve(moduleDir, "testdata", "hello.txt");
diff --git a/tests/unit_node/_fs/_fs_link_test.ts b/tests/unit_node/_fs/_fs_link_test.ts
index aad025413..3062db7a6 100644
--- a/tests/unit_node/_fs/_fs_link_test.ts
+++ b/tests/unit_node/_fs/_fs_link_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import * as path from "@std/path/mod.ts";
-import { assert, assertEquals, fail } from "@std/assert/mod.ts";
+import * as path from "@std/path";
+import { assert, assertEquals, fail } from "@std/assert";
import { assertCallbackErrorUncaught } from "../_test_utils.ts";
import { link, linkSync } from "node:fs";
diff --git a/tests/unit_node/_fs/_fs_lstat_test.ts b/tests/unit_node/_fs/_fs_lstat_test.ts
index 2887cf23b..6a4244345 100644
--- a/tests/unit_node/_fs/_fs_lstat_test.ts
+++ b/tests/unit_node/_fs/_fs_lstat_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { lstat, lstatSync } from "node:fs";
-import { fail } from "@std/assert/mod.ts";
+import { fail } from "@std/assert";
import { assertCallbackErrorUncaught } from "../_test_utils.ts";
import { assertStats, assertStatsBigInt } from "./_fs_stat_test.ts";
import type { BigIntStats, Stats } from "node:fs";
diff --git a/tests/unit_node/_fs/_fs_mkdir_test.ts b/tests/unit_node/_fs/_fs_mkdir_test.ts
index 874e9f856..b9f6adf44 100644
--- a/tests/unit_node/_fs/_fs_mkdir_test.ts
+++ b/tests/unit_node/_fs/_fs_mkdir_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import * as path from "@std/path/mod.ts";
-import { assert } from "@std/assert/mod.ts";
+import * as path from "@std/path";
+import { assert } from "@std/assert";
import { assertCallbackErrorUncaught } from "../_test_utils.ts";
import { existsSync, mkdir, mkdirSync } from "node:fs";
diff --git a/tests/unit_node/_fs/_fs_mkdtemp_test.ts b/tests/unit_node/_fs/_fs_mkdtemp_test.ts
index 3021a52af..47530b495 100644
--- a/tests/unit_node/_fs/_fs_mkdtemp_test.ts
+++ b/tests/unit_node/_fs/_fs_mkdtemp_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assert, assertRejects, assertThrows } from "@std/assert/mod.ts";
+import { assert, assertRejects, assertThrows } from "@std/assert";
import { EncodingOption, existsSync, mkdtemp, mkdtempSync } from "node:fs";
import { env } from "node:process";
import { promisify } from "node:util";
diff --git a/tests/unit_node/_fs/_fs_open_test.ts b/tests/unit_node/_fs/_fs_open_test.ts
index 3f0750382..b4679cbab 100644
--- a/tests/unit_node/_fs/_fs_open_test.ts
+++ b/tests/unit_node/_fs/_fs_open_test.ts
@@ -9,7 +9,7 @@ import {
O_TRUNC,
O_WRONLY,
} from "node:constants";
-import { assertEquals, assertThrows, fail } from "@std/assert/mod.ts";
+import { assertEquals, assertThrows, fail } from "@std/assert";
import { assertCallbackErrorUncaught } from "../_test_utils.ts";
import { open, openSync } from "node:fs";
import { join, parse } from "node:path";
diff --git a/tests/unit_node/_fs/_fs_opendir_test.ts b/tests/unit_node/_fs/_fs_opendir_test.ts
index 74a5438b4..e22a47a70 100644
--- a/tests/unit_node/_fs/_fs_opendir_test.ts
+++ b/tests/unit_node/_fs/_fs_opendir_test.ts
@@ -6,7 +6,7 @@ import {
assertFalse,
assertInstanceOf,
assertThrows,
-} from "@std/assert/mod.ts";
+} from "@std/assert";
import { opendir, opendirSync } from "node:fs";
import { Buffer } from "node:buffer";
import { assertCallbackErrorUncaught } from "../_test_utils.ts";
diff --git a/tests/unit_node/_fs/_fs_readFile_test.ts b/tests/unit_node/_fs/_fs_readFile_test.ts
index 9f07690bc..ea36b9d86 100644
--- a/tests/unit_node/_fs/_fs_readFile_test.ts
+++ b/tests/unit_node/_fs/_fs_readFile_test.ts
@@ -1,8 +1,8 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { assertCallbackErrorUncaught } from "../_test_utils.ts";
import { promises, readFile, readFileSync } from "node:fs";
-import * as path from "@std/path/mod.ts";
-import { assert, assertEquals } from "@std/assert/mod.ts";
+import * as path from "@std/path";
+import { assert, assertEquals } from "@std/assert";
const moduleDir = path.dirname(path.fromFileUrl(import.meta.url));
const testData = path.resolve(moduleDir, "testdata", "hello.txt");
diff --git a/tests/unit_node/_fs/_fs_read_test.ts b/tests/unit_node/_fs/_fs_read_test.ts
index 77311f7f3..42e8fed73 100644
--- a/tests/unit_node/_fs/_fs_read_test.ts
+++ b/tests/unit_node/_fs/_fs_read_test.ts
@@ -4,11 +4,11 @@ import {
assertFalse,
assertMatch,
assertStrictEquals,
-} from "@std/assert/mod.ts";
+} from "@std/assert";
import { read, readSync } from "node:fs";
import { open, openSync } from "node:fs";
import { Buffer } from "node:buffer";
-import * as path from "@std/path/mod.ts";
+import * as path from "@std/path";
import { closeSync } from "node:fs";
async function readTest(
diff --git a/tests/unit_node/_fs/_fs_readdir_test.ts b/tests/unit_node/_fs/_fs_readdir_test.ts
index b54e15816..8e5b46fc8 100644
--- a/tests/unit_node/_fs/_fs_readdir_test.ts
+++ b/tests/unit_node/_fs/_fs_readdir_test.ts
@@ -1,8 +1,8 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assertEquals, assertNotEquals, fail } from "@std/assert/mod.ts";
+import { assertEquals, assertNotEquals, fail } from "@std/assert";
import { assertCallbackErrorUncaught } from "../_test_utils.ts";
import { readdir, readdirSync } from "node:fs";
-import { join } from "@std/path/mod.ts";
+import { join } from "@std/path";
Deno.test({
name: "ASYNC: reading empty directory",
diff --git a/tests/unit_node/_fs/_fs_readlink_test.ts b/tests/unit_node/_fs/_fs_readlink_test.ts
index f955d09a1..23c5e3896 100644
--- a/tests/unit_node/_fs/_fs_readlink_test.ts
+++ b/tests/unit_node/_fs/_fs_readlink_test.ts
@@ -1,8 +1,8 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { assertCallbackErrorUncaught } from "../_test_utils.ts";
import { readlink, readlinkSync } from "node:fs";
-import { assert, assertEquals } from "@std/assert/mod.ts";
-import * as path from "@std/path/mod.ts";
+import { assert, assertEquals } from "@std/assert";
+import * as path from "@std/path";
const testDir = Deno.makeTempDirSync();
const oldname = path.join(testDir, "oldname");
diff --git a/tests/unit_node/_fs/_fs_realpath_test.ts b/tests/unit_node/_fs/_fs_realpath_test.ts
index 1fabfe779..b0285cf54 100644
--- a/tests/unit_node/_fs/_fs_realpath_test.ts
+++ b/tests/unit_node/_fs/_fs_realpath_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import * as path from "@std/path/mod.ts";
-import { assertEquals } from "@std/assert/mod.ts";
+import * as path from "@std/path";
+import { assertEquals } from "@std/assert";
import { assertCallbackErrorUncaught } from "../_test_utils.ts";
import { realpath, realpathSync } from "node:fs";
diff --git a/tests/unit_node/_fs/_fs_rename_test.ts b/tests/unit_node/_fs/_fs_rename_test.ts
index d8392b9e7..76d2e1314 100644
--- a/tests/unit_node/_fs/_fs_rename_test.ts
+++ b/tests/unit_node/_fs/_fs_rename_test.ts
@@ -1,9 +1,9 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assertEquals, fail } from "@std/assert/mod.ts";
+import { assertEquals, fail } from "@std/assert";
import { assertCallbackErrorUncaught } from "../_test_utils.ts";
import { rename, renameSync } from "node:fs";
import { existsSync } from "node:fs";
-import { join, parse } from "@std/path/mod.ts";
+import { join, parse } from "@std/path";
Deno.test({
name: "ASYNC: renaming a file",
diff --git a/tests/unit_node/_fs/_fs_rm_test.ts b/tests/unit_node/_fs/_fs_rm_test.ts
index 64aa378b6..6ded2e564 100644
--- a/tests/unit_node/_fs/_fs_rm_test.ts
+++ b/tests/unit_node/_fs/_fs_rm_test.ts
@@ -1,13 +1,8 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import {
- assertEquals,
- assertRejects,
- assertThrows,
- fail,
-} from "@std/assert/mod.ts";
+import { assertEquals, assertRejects, assertThrows, fail } from "@std/assert";
import { rm, rmSync } from "node:fs";
import { existsSync } from "node:fs";
-import { join } from "@std/path/mod.ts";
+import { join } from "@std/path";
Deno.test({
name: "ASYNC: removing empty folder",
diff --git a/tests/unit_node/_fs/_fs_rmdir_test.ts b/tests/unit_node/_fs/_fs_rmdir_test.ts
index 1045882c7..db0c692a4 100644
--- a/tests/unit_node/_fs/_fs_rmdir_test.ts
+++ b/tests/unit_node/_fs/_fs_rmdir_test.ts
@@ -1,8 +1,8 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assertEquals, fail } from "@std/assert/mod.ts";
+import { assertEquals, fail } from "@std/assert";
import { rmdir, rmdirSync } from "node:fs";
import { existsSync } from "node:fs";
-import { join } from "@std/path/mod.ts";
+import { join } from "@std/path";
import { assertCallbackErrorUncaught } from "../_test_utils.ts";
Deno.test({
diff --git a/tests/unit_node/_fs/_fs_stat_test.ts b/tests/unit_node/_fs/_fs_stat_test.ts
index 2f9ab5214..09d78f9db 100644
--- a/tests/unit_node/_fs/_fs_stat_test.ts
+++ b/tests/unit_node/_fs/_fs_stat_test.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { assertCallbackErrorUncaught } from "../_test_utils.ts";
import { BigIntStats, stat, Stats, statSync } from "node:fs";
-import { assertEquals, fail } from "@std/assert/mod.ts";
+import { assertEquals, fail } from "@std/assert";
export function assertStats(actual: Stats, expected: Deno.FileInfo) {
assertEquals(actual.dev, expected.dev);
diff --git a/tests/unit_node/_fs/_fs_statfs_test.ts b/tests/unit_node/_fs/_fs_statfs_test.ts
index fde1c8fed..fc85bcf17 100644
--- a/tests/unit_node/_fs/_fs_statfs_test.ts
+++ b/tests/unit_node/_fs/_fs_statfs_test.ts
@@ -1,8 +1,8 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import * as fs from "node:fs";
-import { assertEquals, assertRejects } from "@std/assert/mod.ts";
-import * as path from "@std/path/mod.ts";
+import { assertEquals, assertRejects } from "@std/assert";
+import * as path from "@std/path";
function assertStatFs(
statFs: fs.StatsFsBase<unknown>,
diff --git a/tests/unit_node/_fs/_fs_symlink_test.ts b/tests/unit_node/_fs/_fs_symlink_test.ts
index 98cf51460..dfd6adb51 100644
--- a/tests/unit_node/_fs/_fs_symlink_test.ts
+++ b/tests/unit_node/_fs/_fs_symlink_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assert, assertThrows, fail } from "@std/assert/mod.ts";
+import { assert, assertThrows, fail } from "@std/assert";
import { symlink, symlinkSync } from "node:fs";
Deno.test({
diff --git a/tests/unit_node/_fs/_fs_truncate_test.ts b/tests/unit_node/_fs/_fs_truncate_test.ts
index 9fb8a8bf2..67bd021e4 100644
--- a/tests/unit_node/_fs/_fs_truncate_test.ts
+++ b/tests/unit_node/_fs/_fs_truncate_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assertEquals, assertThrows, fail } from "@std/assert/mod.ts";
+import { assertEquals, assertThrows, fail } from "@std/assert";
import { truncate, truncateSync } from "node:fs";
Deno.test({
diff --git a/tests/unit_node/_fs/_fs_unlink_test.ts b/tests/unit_node/_fs/_fs_unlink_test.ts
index 7377f5c87..f96217f8e 100644
--- a/tests/unit_node/_fs/_fs_unlink_test.ts
+++ b/tests/unit_node/_fs/_fs_unlink_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assertEquals, fail } from "@std/assert/mod.ts";
+import { assertEquals, fail } from "@std/assert";
import { existsSync } from "node:fs";
import { assertCallbackErrorUncaught } from "../_test_utils.ts";
import { unlink, unlinkSync } from "node:fs";
diff --git a/tests/unit_node/_fs/_fs_utimes_test.ts b/tests/unit_node/_fs/_fs_utimes_test.ts
index 4b805c923..717d511c0 100644
--- a/tests/unit_node/_fs/_fs_utimes_test.ts
+++ b/tests/unit_node/_fs/_fs_utimes_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assertEquals, assertThrows, fail } from "@std/assert/mod.ts";
+import { assertEquals, assertThrows, fail } from "@std/assert";
import { utimes, utimesSync } from "node:fs";
const randomDate = new Date(Date.now() + 1000);
diff --git a/tests/unit_node/_fs/_fs_watch_test.ts b/tests/unit_node/_fs/_fs_watch_test.ts
index 8e2fb619c..c6082d77f 100644
--- a/tests/unit_node/_fs/_fs_watch_test.ts
+++ b/tests/unit_node/_fs/_fs_watch_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { unwatchFile, watch, watchFile } from "node:fs";
-import { assertEquals } from "@std/assert/mod.ts";
+import { assertEquals } from "@std/assert";
function wait(time: number) {
return new Promise((resolve) => {
diff --git a/tests/unit_node/_fs/_fs_writeFile_test.ts b/tests/unit_node/_fs/_fs_writeFile_test.ts
index 2310dac68..53af660cf 100644
--- a/tests/unit_node/_fs/_fs_writeFile_test.ts
+++ b/tests/unit_node/_fs/_fs_writeFile_test.ts
@@ -5,9 +5,9 @@ import {
assertNotEquals,
assertRejects,
assertThrows,
-} from "@std/assert/mod.ts";
+} from "@std/assert";
import { writeFile, writeFileSync } from "node:fs";
-import * as path from "@std/path/mod.ts";
+import * as path from "@std/path";
type TextEncodings =
| "ascii"
diff --git a/tests/unit_node/_fs/_fs_write_test.ts b/tests/unit_node/_fs/_fs_write_test.ts
index 148bc40e7..ab82d4f5b 100644
--- a/tests/unit_node/_fs/_fs_write_test.ts
+++ b/tests/unit_node/_fs/_fs_write_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { write, writeSync } from "node:fs";
-import { assertEquals } from "@std/assert/mod.ts";
+import { assertEquals } from "@std/assert";
import { Buffer } from "node:buffer";
const decoder = new TextDecoder("utf-8");
diff --git a/tests/unit_node/_test_utils.ts b/tests/unit_node/_test_utils.ts
index 0aa2c8521..d9dd4e5d5 100644
--- a/tests/unit_node/_test_utils.ts
+++ b/tests/unit_node/_test_utils.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assert, assertStringIncludes } from "@std/assert/mod.ts";
+import { assert, assertStringIncludes } from "@std/assert";
/** Asserts that an error thrown in a callback will not be wrongly caught. */
export async function assertCallbackErrorUncaught(
diff --git a/tests/unit_node/assertion_error_test.ts b/tests/unit_node/assertion_error_test.ts
index 6cce7a4ac..4f8fe70ba 100644
--- a/tests/unit_node/assertion_error_test.ts
+++ b/tests/unit_node/assertion_error_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { stripColor } from "@std/fmt/colors.ts";
-import { assert, assertStrictEquals } from "@std/assert/mod.ts";
+import { stripAnsiCode } from "@std/fmt/colors";
+import { assert, assertStrictEquals } from "@std/assert";
import { AssertionError } from "node:assert";
Deno.test({
@@ -31,7 +31,7 @@ Deno.test({
{ actual: 1, expected: 2, operator: "equal" },
);
assertStrictEquals(err.name, "AssertionError");
- assertStrictEquals(stripColor(err.message), "1 equal 2");
+ assertStrictEquals(stripAnsiCode(err.message), "1 equal 2");
assertStrictEquals(err.generatedMessage, true);
assertStrictEquals(err.code, "ERR_ASSERTION");
assertStrictEquals(err.actual, 1);
@@ -51,7 +51,7 @@ Deno.test({
stackStartFn,
});
assertStrictEquals(err.name, "AssertionError");
- assertStrictEquals(stripColor(err.message), `'deno' match /node/`);
+ assertStrictEquals(stripAnsiCode(err.message), `'deno' match /node/`);
assertStrictEquals(err.generatedMessage, true);
assertStrictEquals(err.code, "ERR_ASSERTION");
assertStrictEquals(err.actual, "deno");
diff --git a/tests/unit_node/async_hooks_test.ts b/tests/unit_node/async_hooks_test.ts
index 46d7dd785..f153f6753 100644
--- a/tests/unit_node/async_hooks_test.ts
+++ b/tests/unit_node/async_hooks_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { AsyncLocalStorage, AsyncResource } from "node:async_hooks";
-import { assert, assertEquals } from "@std/assert/mod.ts";
+import { assert, assertEquals } from "@std/assert";
Deno.test(async function foo() {
const asyncLocalStorage = new AsyncLocalStorage();
diff --git a/tests/unit_node/buffer_test.ts b/tests/unit_node/buffer_test.ts
index 07f5dd2c1..bd7f6edb1 100644
--- a/tests/unit_node/buffer_test.ts
+++ b/tests/unit_node/buffer_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { Buffer } from "node:buffer";
-import { assertEquals, assertThrows } from "@std/assert/mod.ts";
+import { assertEquals, assertThrows } from "@std/assert";
Deno.test({
name: "[node/buffer] alloc fails if size is not a number",
diff --git a/tests/unit_node/child_process_test.ts b/tests/unit_node/child_process_test.ts
index 23de928db..cfac0b5a9 100644
--- a/tests/unit_node/child_process_test.ts
+++ b/tests/unit_node/child_process_test.ts
@@ -9,8 +9,8 @@ import {
assertNotStrictEquals,
assertStrictEquals,
assertStringIncludes,
-} from "@std/assert/mod.ts";
-import * as path from "@std/path/mod.ts";
+} from "@std/assert";
+import * as path from "@std/path";
const { spawn, spawnSync, execFile, execFileSync, ChildProcess } = CP;
diff --git a/tests/unit_node/console_test.ts b/tests/unit_node/console_test.ts
index f79dcc436..25d4a78e5 100644
--- a/tests/unit_node/console_test.ts
+++ b/tests/unit_node/console_test.ts
@@ -1,18 +1,18 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import vm from "node:vm";
-import { stripColor } from "@std/fmt/colors.ts";
-import { assertStringIncludes } from "@std/assert/mod.ts";
+import { stripAnsiCode } from "@std/fmt/colors";
+import { assertStringIncludes } from "@std/assert";
Deno.test(function inspectCrossRealmObjects() {
assertStringIncludes(
- stripColor(
+ stripAnsiCode(
Deno.inspect(vm.runInNewContext(`new Error("This is an error")`)),
),
"Error: This is an error",
);
assertStringIncludes(
- stripColor(
+ stripAnsiCode(
Deno.inspect(
vm.runInNewContext(`new AggregateError([], "This is an error")`),
),
@@ -20,7 +20,7 @@ Deno.test(function inspectCrossRealmObjects() {
"AggregateError: This is an error",
);
assertStringIncludes(
- stripColor(
+ stripAnsiCode(
Deno.inspect(vm.runInNewContext(`new Date("2018-12-10T02:26:59.002Z")`)),
),
"2018-12-10T02:26:59.002Z",
diff --git a/tests/unit_node/crypto/crypto_cipher_gcm_test.ts b/tests/unit_node/crypto/crypto_cipher_gcm_test.ts
index f25c81036..e87ae23f0 100644
--- a/tests/unit_node/crypto/crypto_cipher_gcm_test.ts
+++ b/tests/unit_node/crypto/crypto_cipher_gcm_test.ts
@@ -4,7 +4,7 @@ import crypto from "node:crypto";
import { Buffer } from "node:buffer";
import testVectors128 from "./gcmEncryptExtIV128.json" with { type: "json" };
import testVectors256 from "./gcmEncryptExtIV256.json" with { type: "json" };
-import { assertEquals } from "@std/assert/mod.ts";
+import { assertEquals } from "@std/assert";
const aesGcm = (bits: string, key: Uint8Array) => {
const ALGO = bits == "128" ? `aes-128-gcm` : `aes-256-gcm`;
diff --git a/tests/unit_node/crypto/crypto_cipher_test.ts b/tests/unit_node/crypto/crypto_cipher_test.ts
index ab8bb4d37..91227cf00 100644
--- a/tests/unit_node/crypto/crypto_cipher_test.ts
+++ b/tests/unit_node/crypto/crypto_cipher_test.ts
@@ -3,7 +3,7 @@ import crypto from "node:crypto";
import { Buffer } from "node:buffer";
import { Readable } from "node:stream";
import { buffer, text } from "node:stream/consumers";
-import { assertEquals, assertThrows } from "@std/assert/mod.ts";
+import { assertEquals, assertThrows } from "@std/assert";
const rsaPrivateKey = Deno.readTextFileSync(
new URL("../testdata/rsa_private.pem", import.meta.url),
diff --git a/tests/unit_node/crypto/crypto_hash_test.ts b/tests/unit_node/crypto/crypto_hash_test.ts
index 96bc1d51b..0d4e30709 100644
--- a/tests/unit_node/crypto/crypto_hash_test.ts
+++ b/tests/unit_node/crypto/crypto_hash_test.ts
@@ -2,7 +2,7 @@
import { createHash, createHmac, getHashes } from "node:crypto";
import { Buffer } from "node:buffer";
import { Readable } from "node:stream";
-import { assert, assertEquals } from "@std/assert/mod.ts";
+import { assert, assertEquals } from "@std/assert";
// https://github.com/denoland/deno/issues/18140
Deno.test({
diff --git a/tests/unit_node/crypto/crypto_hkdf_test.ts b/tests/unit_node/crypto/crypto_hkdf_test.ts
index be5d99086..34102fd03 100644
--- a/tests/unit_node/crypto/crypto_hkdf_test.ts
+++ b/tests/unit_node/crypto/crypto_hkdf_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { hkdfSync } from "node:crypto";
-import { assertEquals } from "@std/assert/mod.ts";
+import { assertEquals } from "@std/assert";
import { Buffer } from "node:buffer";
import nodeFixtures from "../testdata/crypto_digest_fixtures.json" with {
type: "json",
diff --git a/tests/unit_node/crypto/crypto_key_test.ts b/tests/unit_node/crypto/crypto_key_test.ts
index d3a43b3b8..6365119e2 100644
--- a/tests/unit_node/crypto/crypto_key_test.ts
+++ b/tests/unit_node/crypto/crypto_key_test.ts
@@ -15,7 +15,7 @@ import {
} from "node:crypto";
import { promisify } from "node:util";
import { Buffer } from "node:buffer";
-import { assert, assertEquals, assertThrows } from "@std/assert/mod.ts";
+import { assert, assertEquals, assertThrows } from "@std/assert";
const RUN_SLOW_TESTS = Deno.env.get("SLOW_TESTS") === "1";
diff --git a/tests/unit_node/crypto/crypto_pbkdf2_test.ts b/tests/unit_node/crypto/crypto_pbkdf2_test.ts
index 8ace870cb..c937eb0c4 100644
--- a/tests/unit_node/crypto/crypto_pbkdf2_test.ts
+++ b/tests/unit_node/crypto/crypto_pbkdf2_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { pbkdf2, pbkdf2Sync } from "node:crypto";
-import { assert, assertEquals } from "@std/assert/mod.ts";
+import { assert, assertEquals } from "@std/assert";
import nodeFixtures from "../testdata/crypto_digest_fixtures.json" with {
type: "json",
};
diff --git a/tests/unit_node/crypto/crypto_scrypt_test.ts b/tests/unit_node/crypto/crypto_scrypt_test.ts
index c128abb92..03c08909e 100644
--- a/tests/unit_node/crypto/crypto_scrypt_test.ts
+++ b/tests/unit_node/crypto/crypto_scrypt_test.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { scrypt, scryptSync } from "node:crypto";
import { Buffer } from "node:buffer";
-import { assertEquals } from "@std/assert/mod.ts";
+import { assertEquals } from "@std/assert";
Deno.test("scrypt works correctly", async () => {
const { promise, resolve } = Promise.withResolvers<boolean>();
diff --git a/tests/unit_node/crypto/crypto_sign_test.ts b/tests/unit_node/crypto/crypto_sign_test.ts
index 77c5caf75..557eea08e 100644
--- a/tests/unit_node/crypto/crypto_sign_test.ts
+++ b/tests/unit_node/crypto/crypto_sign_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assert, assertEquals } from "@std/testing/asserts.ts";
+import { assert, assertEquals } from "@std/assert";
import { createSign, createVerify, sign, verify } from "node:crypto";
import { Buffer } from "node:buffer";
import fixtures from "../testdata/crypto_digest_fixtures.json" with {
diff --git a/tests/unit_node/dgram_test.ts b/tests/unit_node/dgram_test.ts
index 10c8e5253..2ccdfbfb7 100644
--- a/tests/unit_node/dgram_test.ts
+++ b/tests/unit_node/dgram_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assertEquals } from "@std/assert/mod.ts";
+import { assertEquals } from "@std/assert";
import { execCode } from "../unit/test_util.ts";
import { createSocket } from "node:dgram";
diff --git a/tests/unit_node/domain_test.ts b/tests/unit_node/domain_test.ts
index 88c2b4b47..ddc56efae 100644
--- a/tests/unit_node/domain_test.ts
+++ b/tests/unit_node/domain_test.ts
@@ -4,7 +4,7 @@
import domain from "node:domain";
import { EventEmitter } from "node:events";
-import { assertEquals } from "@std/assert/mod.ts";
+import { assertEquals } from "@std/assert";
Deno.test("should work on throws", async function () {
const deferred = Promise.withResolvers<void>();
diff --git a/tests/unit_node/fs_test.ts b/tests/unit_node/fs_test.ts
index 1b121c71f..c94a2447e 100644
--- a/tests/unit_node/fs_test.ts
+++ b/tests/unit_node/fs_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assert, assertEquals, assertThrows } from "@std/assert/mod.ts";
+import { assert, assertEquals, assertThrows } from "@std/assert";
import { join } from "node:path";
import { tmpdir } from "node:os";
import {
diff --git a/tests/unit_node/http2_test.ts b/tests/unit_node/http2_test.ts
index 968ef15a0..67c2497d5 100644
--- a/tests/unit_node/http2_test.ts
+++ b/tests/unit_node/http2_test.ts
@@ -5,7 +5,7 @@ import { Buffer } from "node:buffer";
import { readFile } from "node:fs/promises";
import { join } from "node:path";
import * as net from "node:net";
-import { assert, assertEquals } from "@std/assert/mod.ts";
+import { assert, assertEquals } from "@std/assert";
import { curlRequest } from "../unit/test_util.ts";
for (const url of ["http://127.0.0.1:4246", "https://127.0.0.1:4247"]) {
diff --git a/tests/unit_node/http_test.ts b/tests/unit_node/http_test.ts
index 3831cac06..c9a1ec3ea 100644
--- a/tests/unit_node/http_test.ts
+++ b/tests/unit_node/http_test.ts
@@ -7,9 +7,9 @@ import https from "node:https";
import net from "node:net";
import fs from "node:fs";
-import { assert, assertEquals, fail } from "@std/assert/mod.ts";
-import { assertSpyCalls, spy } from "@std/testing/mock.ts";
-import { fromFileUrl, relative } from "@std/path/mod.ts";
+import { assert, assertEquals, fail } from "@std/assert";
+import { assertSpyCalls, spy } from "@std/testing/mock";
+import { fromFileUrl, relative } from "@std/path";
import { gzip } from "node:zlib";
import { Buffer } from "node:buffer";
diff --git a/tests/unit_node/internal/_randomBytes_test.ts b/tests/unit_node/internal/_randomBytes_test.ts
index 4d6f5c39a..ff3acf5e3 100644
--- a/tests/unit_node/internal/_randomBytes_test.ts
+++ b/tests/unit_node/internal/_randomBytes_test.ts
@@ -1,10 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import {
- assert,
- assertEquals,
- assertRejects,
- assertThrows,
-} from "@std/assert/mod.ts";
+import { assert, assertEquals, assertRejects, assertThrows } from "@std/assert";
import { assertCallbackErrorUncaught } from "../_test_utils.ts";
import { pseudoRandomBytes, randomBytes } from "node:crypto";
diff --git a/tests/unit_node/internal/_randomFill_test.ts b/tests/unit_node/internal/_randomFill_test.ts
index 438e6e42d..7b590666c 100644
--- a/tests/unit_node/internal/_randomFill_test.ts
+++ b/tests/unit_node/internal/_randomFill_test.ts
@@ -1,11 +1,7 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { Buffer } from "node:buffer";
import { randomFill, randomFillSync } from "node:crypto";
-import {
- assertEquals,
- assertNotEquals,
- assertThrows,
-} from "@std/assert/mod.ts";
+import { assertEquals, assertNotEquals, assertThrows } from "@std/assert";
const validateNonZero = (buf: Buffer) => {
if (!buf.some((ch) => ch > 0)) throw new Error("Error");
diff --git a/tests/unit_node/internal/_randomInt_test.ts b/tests/unit_node/internal/_randomInt_test.ts
index 1d2610268..b0d9d771e 100644
--- a/tests/unit_node/internal/_randomInt_test.ts
+++ b/tests/unit_node/internal/_randomInt_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { randomInt } from "node:crypto";
-import { assert, assertThrows } from "@std/assert/mod.ts";
+import { assert, assertThrows } from "@std/assert";
const between = (x: number, min: number, max: number) => x >= min && x < max;
diff --git a/tests/unit_node/module_test.ts b/tests/unit_node/module_test.ts
index c17aabc72..25249101a 100644
--- a/tests/unit_node/module_test.ts
+++ b/tests/unit_node/module_test.ts
@@ -7,7 +7,7 @@ import {
isBuiltin,
Module,
} from "node:module";
-import { assert, assertEquals } from "@std/assert/mod.ts";
+import { assert, assertEquals } from "@std/assert";
import process from "node:process";
import * as path from "node:path";
diff --git a/tests/unit_node/net_test.ts b/tests/unit_node/net_test.ts
index ebbc749b5..521de1e73 100644
--- a/tests/unit_node/net_test.ts
+++ b/tests/unit_node/net_test.ts
@@ -1,8 +1,8 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import * as net from "node:net";
-import { assert, assertEquals } from "@std/assert/mod.ts";
-import * as path from "@std/path/mod.ts";
+import { assert, assertEquals } from "@std/assert";
+import * as path from "@std/path";
import * as http from "node:http";
Deno.test("[node/net] close event emits after error event - when host is not found", async () => {
diff --git a/tests/unit_node/os_test.ts b/tests/unit_node/os_test.ts
index 810c22518..a75b66807 100644
--- a/tests/unit_node/os_test.ts
+++ b/tests/unit_node/os_test.ts
@@ -7,7 +7,7 @@ import {
assertEquals,
assertNotEquals,
assertThrows,
-} from "@std/assert/mod.ts";
+} from "@std/assert";
Deno.test({
name: "build architecture is a string",
diff --git a/tests/unit_node/path_test.ts b/tests/unit_node/path_test.ts
index 0313c60ed..bd0711334 100644
--- a/tests/unit_node/path_test.ts
+++ b/tests/unit_node/path_test.ts
@@ -4,7 +4,7 @@ import path from "node:path";
import posix from "node:path/posix";
import win32 from "node:path/win32";
-import { assertStrictEquals } from "@std/assert/mod.ts";
+import { assertStrictEquals } from "@std/assert";
Deno.test("[node/path] posix and win32 objects", () => {
assertStrictEquals(path.posix, posix);
diff --git a/tests/unit_node/perf_hooks_test.ts b/tests/unit_node/perf_hooks_test.ts
index 1b066a42b..d5b900041 100644
--- a/tests/unit_node/perf_hooks_test.ts
+++ b/tests/unit_node/perf_hooks_test.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import * as perfHooks from "node:perf_hooks";
import { performance, PerformanceObserver } from "node:perf_hooks";
-import { assertEquals, assertThrows } from "@std/assert/mod.ts";
+import { assertEquals, assertThrows } from "@std/assert";
Deno.test({
name: "[perf_hooks] performance",
diff --git a/tests/unit_node/process_test.ts b/tests/unit_node/process_test.ts
index e15d37744..cc9e4dbd4 100644
--- a/tests/unit_node/process_test.ts
+++ b/tests/unit_node/process_test.ts
@@ -21,10 +21,10 @@ import {
assertStrictEquals,
assertThrows,
fail,
-} from "@std/assert/mod.ts";
-import { stripColor } from "@std/fmt/colors.ts";
-import * as path from "@std/path/mod.ts";
-import { delay } from "@std/async/delay.ts";
+} from "@std/assert";
+import { stripAnsiCode } from "@std/fmt/colors";
+import * as path from "@std/path";
+import { delay } from "@std/async/delay";
const testDir = new URL(".", import.meta.url);
@@ -178,7 +178,7 @@ Deno.test({
const { stdout } = await command.output();
const decoder = new TextDecoder();
- assertEquals(stripColor(decoder.decode(stdout).trim()), "1\n2");
+ assertEquals(stripAnsiCode(decoder.decode(stdout).trim()), "1\n2");
},
});
@@ -897,7 +897,7 @@ Deno.test({
const { stdout } = await command.output();
const decoder = new TextDecoder();
- assertEquals(stripColor(decoder.decode(stdout).trim()), "exit");
+ assertEquals(stripAnsiCode(decoder.decode(stdout).trim()), "exit");
},
});
@@ -916,7 +916,7 @@ Deno.test({
const { stdout } = await command.output();
const decoder = new TextDecoder();
- assertEquals(stripColor(decoder.decode(stdout).trim()), "really exited");
+ assertEquals(stripAnsiCode(decoder.decode(stdout).trim()), "really exited");
},
});
diff --git a/tests/unit_node/punycode_test.ts b/tests/unit_node/punycode_test.ts
index baf1b57f6..fffa26164 100644
--- a/tests/unit_node/punycode_test.ts
+++ b/tests/unit_node/punycode_test.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import * as punycode from "node:punycode";
-import { assertEquals } from "@std/assert/mod.ts";
+import { assertEquals } from "@std/assert";
Deno.test("regression #19214", () => {
const input = "δΈͺ\uFFFD\uFFFD.hk";
diff --git a/tests/unit_node/querystring_test.ts b/tests/unit_node/querystring_test.ts
index 7a97b3b9a..09672df37 100644
--- a/tests/unit_node/querystring_test.ts
+++ b/tests/unit_node/querystring_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assertEquals } from "@std/assert/mod.ts";
+import { assertEquals } from "@std/assert";
import { parse, stringify } from "node:querystring";
Deno.test({
diff --git a/tests/unit_node/readline_test.ts b/tests/unit_node/readline_test.ts
index b9a732548..68f0cd7c9 100644
--- a/tests/unit_node/readline_test.ts
+++ b/tests/unit_node/readline_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { createInterface, Interface } from "node:readline";
-import { assertInstanceOf } from "@std/assert/mod.ts";
+import { assertInstanceOf } from "@std/assert";
import { Readable, Writable } from "node:stream";
Deno.test("[node/readline] createInstance", () => {
diff --git a/tests/unit_node/repl_test.ts b/tests/unit_node/repl_test.ts
index 16c9c23f2..693fdcc9e 100644
--- a/tests/unit_node/repl_test.ts
+++ b/tests/unit_node/repl_test.ts
@@ -2,7 +2,7 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import repl from "node:repl";
-import { assert } from "@std/assert/mod.ts";
+import { assert } from "@std/assert";
Deno.test({
name: "repl module exports",
diff --git a/tests/unit_node/stream_test.ts b/tests/unit_node/stream_test.ts
index 08f3831e5..a54f8b421 100644
--- a/tests/unit_node/stream_test.ts
+++ b/tests/unit_node/stream_test.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assert } from "@std/assert/mod.ts";
-import { fromFileUrl, relative } from "@std/path/mod.ts";
+import { assert } from "@std/assert";
+import { fromFileUrl, relative } from "@std/path";
import { pipeline } from "node:stream/promises";
import { createReadStream, createWriteStream } from "node:fs";
diff --git a/tests/unit_node/string_decoder_test.ts b/tests/unit_node/string_decoder_test.ts
index 479ee01c0..34fbdd881 100644
--- a/tests/unit_node/string_decoder_test.ts
+++ b/tests/unit_node/string_decoder_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assertEquals } from "@std/assert/mod.ts";
+import { assertEquals } from "@std/assert";
import { Buffer } from "node:buffer";
import { StringDecoder } from "node:string_decoder";
diff --git a/tests/unit_node/timers_test.ts b/tests/unit_node/timers_test.ts
index 5a7668be7..90c6fb150 100644
--- a/tests/unit_node/timers_test.ts
+++ b/tests/unit_node/timers_test.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assert, fail } from "@std/assert/mod.ts";
+import { assert, fail } from "@std/assert";
import * as timers from "node:timers";
import * as timersPromises from "node:timers/promises";
diff --git a/tests/unit_node/tls_test.ts b/tests/unit_node/tls_test.ts
index a9dc10c20..6033efa31 100644
--- a/tests/unit_node/tls_test.ts
+++ b/tests/unit_node/tls_test.ts
@@ -1,8 +1,8 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assertEquals, assertInstanceOf } from "@std/assert/mod.ts";
-import { delay } from "@std/async/delay.ts";
-import { fromFileUrl, join } from "@std/path/mod.ts";
+import { assertEquals, assertInstanceOf } from "@std/assert";
+import { delay } from "@std/async/delay";
+import { fromFileUrl, join } from "@std/path";
import * as tls from "node:tls";
import * as net from "node:net";
import * as stream from "node:stream";
diff --git a/tests/unit_node/tty_test.ts b/tests/unit_node/tty_test.ts
index cde05b9ff..ab3193f4a 100644
--- a/tests/unit_node/tty_test.ts
+++ b/tests/unit_node/tty_test.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
// deno-lint-ignore-file no-explicit-any
-import { assert } from "@std/assert/mod.ts";
+import { assert } from "@std/assert";
import { isatty } from "node:tty";
import tty from "node:tty";
import process from "node:process";
diff --git a/tests/unit_node/util_test.ts b/tests/unit_node/util_test.ts
index 85fa72741..f245a647a 100644
--- a/tests/unit_node/util_test.ts
+++ b/tests/unit_node/util_test.ts
@@ -5,8 +5,8 @@ import {
assertEquals,
assertStrictEquals,
assertThrows,
-} from "@std/assert/mod.ts";
-import { stripColor } from "@std/fmt/colors.ts";
+} from "@std/assert";
+import { stripAnsiCode } from "@std/fmt/colors";
import * as util from "node:util";
import { Buffer } from "node:buffer";
@@ -27,14 +27,14 @@ Deno.test({
Deno.test({
name: "[util] inspect",
fn() {
- assertEquals(stripColor(util.inspect({ foo: 123 })), "{ foo: 123 }");
- assertEquals(stripColor(util.inspect("foo")), "'foo'");
+ assertEquals(stripAnsiCode(util.inspect({ foo: 123 })), "{ foo: 123 }");
+ assertEquals(stripAnsiCode(util.inspect("foo")), "'foo'");
assertEquals(
- stripColor(util.inspect("Deno's logo is so cute.")),
+ stripAnsiCode(util.inspect("Deno's logo is so cute.")),
`"Deno's logo is so cute."`,
);
assertEquals(
- stripColor(util.inspect([1, 2, 3, 4, 5, 6, 7])),
+ stripAnsiCode(util.inspect([1, 2, 3, 4, 5, 6, 7])),
`[
1, 2, 3, 4,
5, 6, 7
diff --git a/tests/unit_node/v8_test.ts b/tests/unit_node/v8_test.ts
index b91d595db..f7208fb0e 100644
--- a/tests/unit_node/v8_test.ts
+++ b/tests/unit_node/v8_test.ts
@@ -6,7 +6,7 @@ import {
serialize,
setFlagsFromString,
} from "node:v8";
-import { assertEquals } from "@std/assert/mod.ts";
+import { assertEquals } from "@std/assert";
// https://github.com/nodejs/node/blob/a2bbe5ff216bc28f8dac1c36a8750025a93c3827/test/parallel/test-v8-version-tag.js#L6
Deno.test({
diff --git a/tests/unit_node/vm_test.ts b/tests/unit_node/vm_test.ts
index 46e231c6c..4c370931d 100644
--- a/tests/unit_node/vm_test.ts
+++ b/tests/unit_node/vm_test.ts
@@ -1,5 +1,5 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assertEquals, assertThrows } from "@std/assert/mod.ts";
+import { assertEquals, assertThrows } from "@std/assert";
import {
createContext,
isContext,
diff --git a/tests/unit_node/worker_threads_test.ts b/tests/unit_node/worker_threads_test.ts
index 9991e5787..d9fe9f77d 100644
--- a/tests/unit_node/worker_threads_test.ts
+++ b/tests/unit_node/worker_threads_test.ts
@@ -6,8 +6,8 @@ import {
assertObjectMatch,
assertThrows,
fail,
-} from "@std/assert/mod.ts";
-import { fromFileUrl, relative, SEPARATOR } from "@std/path/mod.ts";
+} from "@std/assert";
+import { fromFileUrl, relative, SEPARATOR } from "@std/path";
import * as workerThreads from "node:worker_threads";
import { EventEmitter, once } from "node:events";
import process from "node:process";
diff --git a/tests/unit_node/zlib_test.ts b/tests/unit_node/zlib_test.ts
index c7e9bbca9..215717dde 100644
--- a/tests/unit_node/zlib_test.ts
+++ b/tests/unit_node/zlib_test.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import { assert, assertEquals } from "@std/assert/mod.ts";
-import { fromFileUrl, relative } from "@std/path/mod.ts";
+import { assert, assertEquals } from "@std/assert";
+import { fromFileUrl, relative } from "@std/path";
import {
brotliCompress,
brotliCompressSync,
diff --git a/tests/util/std b/tests/util/std
-Subproject 7d419485c74bcdc4a03857dd4d427d4442b058f
+Subproject 3ee4c4dd43ad3a38d1b09aa981332fae1e593ab
diff --git a/tests/wpt/runner/utils.ts b/tests/wpt/runner/utils.ts
index 988e06c09..1674419cd 100644
--- a/tests/wpt/runner/utils.ts
+++ b/tests/wpt/runner/utils.ts
@@ -1,7 +1,7 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
/// FLAGS
-import { parse } from "@std/flags/mod.ts";
+import { parseArgs } from "@std/cli/parse-args";
import { join, resolve, ROOT_PATH } from "../../../tools/util.js";
export const {
@@ -15,7 +15,7 @@ export const {
["inspect-brk"]: inspectBrk,
["no-ignore"]: noIgnore,
binary,
-} = parse(Deno.args, {
+} = parseArgs(Deno.args, {
"--": true,
boolean: ["quiet", "release", "no-interactive", "inspect-brk", "no-ignore"],
string: ["json", "wptreport", "binary"],
diff --git a/tests/wpt/wpt.ts b/tests/wpt/wpt.ts
index fe226d5bc..8879de133 100755
--- a/tests/wpt/wpt.ts
+++ b/tests/wpt/wpt.ts
@@ -32,9 +32,9 @@ import {
updateManifest,
wptreport,
} from "./runner/utils.ts";
-import { pooledMap } from "@std/async/pool.ts";
-import { blue, bold, green, red, yellow } from "@std/fmt/colors.ts";
-import { writeAll, writeAllSync } from "@std/io/write_all.ts";
+import { pooledMap } from "@std/async/pool";
+import { blue, bold, green, red, yellow } from "@std/fmt/colors";
+import { writeAll, writeAllSync } from "@std/io/write-all";
import { saveExpectation } from "./runner/utils.ts";
class TestFilter {
diff --git a/tools/core_import_map.json b/tools/core_import_map.json
index 25ecf733e..bdf9e066b 100644
--- a/tools/core_import_map.json
+++ b/tools/core_import_map.json
@@ -244,6 +244,398 @@
"ext:runtime/90_deno_ns.js": "../runtime/js/90_deno_ns.js",
"ext:runtime/98_global_scope.js": "../runtime/js/98_global_scope.js",
"ext:deno_node/_util/std_fmt_colors.ts": "../ext/node/polyfills/_util/std_fmt_colors.ts",
- "@std/": "../tests/util/std/"
+ "@std/archive": "../tests/util/std/archive/mod.ts",
+ "@std/archive/tar": "../tests/util/std/archive/tar.ts",
+ "@std/archive/untar": "../tests/util/std/archive/untar.ts",
+ "@std/assert": "../tests/util/std/assert/mod.ts",
+ "@std/assert/assert": "../tests/util/std/assert/assert.ts",
+ "@std/assert/almost-equals": "../tests/util/std/assert/almost_equals.ts",
+ "@std/assert/array-includes": "../tests/util/std/assert/array_includes.ts",
+ "@std/assert/equals": "../tests/util/std/assert/equals.ts",
+ "@std/assert/exists": "../tests/util/std/assert/exists.ts",
+ "@std/assert/false": "../tests/util/std/assert/false.ts",
+ "@std/assert/greater": "../tests/util/std/assert/greater.ts",
+ "@std/assert/greater-or-equal": "../tests/util/std/assert/greater_or_equal.ts",
+ "@std/assert/instance-of": "../tests/util/std/assert/instance_of.ts",
+ "@std/assert/is-error": "../tests/util/std/assert/is_error.ts",
+ "@std/assert/less": "../tests/util/std/assert/less.ts",
+ "@std/assert/less-or-equal": "../tests/util/std/assert/less_or_equal.ts",
+ "@std/assert/match": "../tests/util/std/assert/match.ts",
+ "@std/assert/not-equals": "../tests/util/std/assert/not_equals.ts",
+ "@std/assert/not-instance-of": "../tests/util/std/assert/not_instance_of.ts",
+ "@std/assert/not-match": "../tests/util/std/assert/not_match.ts",
+ "@std/assert/not-strict-equals": "../tests/util/std/assert/not_strict_equals.ts",
+ "@std/assert/object-match": "../tests/util/std/assert/object_match.ts",
+ "@std/assert/rejects": "../tests/util/std/assert/rejects.ts",
+ "@std/assert/strict-equals": "../tests/util/std/assert/strict_equals.ts",
+ "@std/assert/string-includes": "../tests/util/std/assert/string_includes.ts",
+ "@std/assert/throws": "../tests/util/std/assert/throws.ts",
+ "@std/assert/assertion-error": "../tests/util/std/assert/assertion_error.ts",
+ "@std/assert/equal": "../tests/util/std/assert/equal.ts",
+ "@std/assert/fail": "../tests/util/std/assert/fail.ts",
+ "@std/assert/unimplemented": "../tests/util/std/assert/unimplemented.ts",
+ "@std/assert/unreachable": "../tests/util/std/assert/unreachable.ts",
+ "@std/async": "../tests/util/std/async/mod.ts",
+ "@std/async/abortable": "../tests/util/std/async/abortable.ts",
+ "@std/async/deadline": "../tests/util/std/async/deadline.ts",
+ "@std/async/debounce": "../tests/util/std/async/debounce.ts",
+ "@std/async/delay": "../tests/util/std/async/delay.ts",
+ "@std/async/mux-async-iterator": "../tests/util/std/async/mux_async_iterator.ts",
+ "@std/async/pool": "../tests/util/std/async/pool.ts",
+ "@std/async/retry": "../tests/util/std/async/retry.ts",
+ "@std/async/tee": "../tests/util/std/async/tee.ts",
+ "@std/bytes": "../tests/util/std/bytes/mod.ts",
+ "@std/bytes/concat": "../tests/util/std/bytes/concat.ts",
+ "@std/bytes/copy": "../tests/util/std/bytes/copy.ts",
+ "@std/bytes/ends-with": "../tests/util/std/bytes/ends_with.ts",
+ "@std/bytes/equals": "../tests/util/std/bytes/equals.ts",
+ "@std/bytes/includes-needle": "../tests/util/std/bytes/includes_needle.ts",
+ "@std/bytes/index-of-needle": "../tests/util/std/bytes/index_of_needle.ts",
+ "@std/bytes/last-index-of-needle": "../tests/util/std/bytes/last_index_of_needle.ts",
+ "@std/bytes/repeat": "../tests/util/std/bytes/repeat.ts",
+ "@std/bytes/starts-with": "../tests/util/std/bytes/starts_with.ts",
+ "@std/cli": "../tests/util/std/cli/mod.ts",
+ "@std/cli/parse-args": "../tests/util/std/cli/parse_args.ts",
+ "@std/cli/prompt-secret": "../tests/util/std/cli/prompt_secret.ts",
+ "@std/cli/spinner": "../tests/util/std/cli/spinner.ts",
+ "@std/cli/unicode-width": "../tests/util/std/cli/unicode_width.ts",
+ "@std/collections": "../tests/util/std/collections/mod.ts",
+ "@std/collections/aggregate-groups": "../tests/util/std/collections/aggregate_groups.ts",
+ "@std/collections/associate-by": "../tests/util/std/collections/associate_by.ts",
+ "@std/collections/associate-with": "../tests/util/std/collections/associate_with.ts",
+ "@std/collections/chunk": "../tests/util/std/collections/chunk.ts",
+ "@std/collections/deep-merge": "../tests/util/std/collections/deep_merge.ts",
+ "@std/collections/distinct": "../tests/util/std/collections/distinct.ts",
+ "@std/collections/distinct-by": "../tests/util/std/collections/distinct_by.ts",
+ "@std/collections/drop-last-while": "../tests/util/std/collections/drop_last_while.ts",
+ "@std/collections/drop-while": "../tests/util/std/collections/drop_while.ts",
+ "@std/collections/filter-entries": "../tests/util/std/collections/filter_entries.ts",
+ "@std/collections/filter-keys": "../tests/util/std/collections/filter_keys.ts",
+ "@std/collections/filter-values": "../tests/util/std/collections/filter_values.ts",
+ "@std/collections/find-single": "../tests/util/std/collections/find_single.ts",
+ "@std/collections/first-not-nullish-of": "../tests/util/std/collections/first_not_nullish_of.ts",
+ "@std/collections/includes-value": "../tests/util/std/collections/includes_value.ts",
+ "@std/collections/intersect": "../tests/util/std/collections/intersect.ts",
+ "@std/collections/invert-by": "../tests/util/std/collections/invert_by.ts",
+ "@std/collections/invert": "../tests/util/std/collections/invert.ts",
+ "@std/collections/join-to-string": "../tests/util/std/collections/join_to_string.ts",
+ "@std/collections/map-entries": "../tests/util/std/collections/map_entries.ts",
+ "@std/collections/map-keys": "../tests/util/std/collections/map_keys.ts",
+ "@std/collections/map-not-nullish": "../tests/util/std/collections/map_not_nullish.ts",
+ "@std/collections/map-values": "../tests/util/std/collections/map_values.ts",
+ "@std/collections/max-by": "../tests/util/std/collections/max_by.ts",
+ "@std/collections/max-of": "../tests/util/std/collections/max_of.ts",
+ "@std/collections/max-with": "../tests/util/std/collections/max_with.ts",
+ "@std/collections/min-by": "../tests/util/std/collections/min_by.ts",
+ "@std/collections/min-of": "../tests/util/std/collections/min_of.ts",
+ "@std/collections/min-with": "../tests/util/std/collections/min_with.ts",
+ "@std/collections/omit": "../tests/util/std/collections/omit.ts",
+ "@std/collections/partition": "../tests/util/std/collections/partition.ts",
+ "@std/collections/partition-entries": "../tests/util/std/collections/partition_entries.ts",
+ "@std/collections/permutations": "../tests/util/std/collections/permutations.ts",
+ "@std/collections/pick": "../tests/util/std/collections/pick.ts",
+ "@std/collections/reduce-groups": "../tests/util/std/collections/reduce_groups.ts",
+ "@std/collections/running-reduce": "../tests/util/std/collections/running_reduce.ts",
+ "@std/collections/sample": "../tests/util/std/collections/sample.ts",
+ "@std/collections/sliding-windows": "../tests/util/std/collections/sliding_windows.ts",
+ "@std/collections/sort-by": "../tests/util/std/collections/sort_by.ts",
+ "@std/collections/sum-of": "../tests/util/std/collections/sum_of.ts",
+ "@std/collections/take-last-while": "../tests/util/std/collections/take_last_while.ts",
+ "@std/collections/take-while": "../tests/util/std/collections/take_while.ts",
+ "@std/collections/union": "../tests/util/std/collections/union.ts",
+ "@std/collections/unzip": "../tests/util/std/collections/unzip.ts",
+ "@std/collections/without-all": "../tests/util/std/collections/without_all.ts",
+ "@std/collections/zip": "../tests/util/std/collections/zip.ts",
+ "@std/crypto": "../tests/util/std/crypto/mod.ts",
+ "@std/crypto/crypto": "../tests/util/std/crypto/crypto.ts",
+ "@std/crypto/timing-safe-equal": "../tests/util/std/crypto/timing_safe_equal.ts",
+ "@std/csv": "../tests/util/std/csv/mod.ts",
+ "@std/csv/parse": "../tests/util/std/csv/parse.ts",
+ "@std/csv/parse-stream": "../tests/util/std/csv/parse_stream.ts",
+ "@std/csv/stringify": "../tests/util/std/csv/stringify.ts",
+ "@std/csv/stringify-stream": "../tests/util/std/csv/stringify_stream.ts",
+ "@std/data-structures": "../tests/util/std/data_structures/mod.ts",
+ "@std/data-structures/binary-heap": "../tests/util/std/data_structures/binary_heap.ts",
+ "@std/data-structures/binary-search-tree": "../tests/util/std/data_structures/binary_search_tree.ts",
+ "@std/data-structures/comparators": "../tests/util/std/data_structures/comparators.ts",
+ "@std/data-structures/red-black-tree": "../tests/util/std/data_structures/red_black_tree.ts",
+ "@std/datetime": "../tests/util/std/datetime/mod.ts",
+ "@std/datetime/constants": "../tests/util/std/datetime/constants.ts",
+ "@std/datetime/day-of-year": "../tests/util/std/datetime/day_of_year.ts",
+ "@std/datetime/difference": "../tests/util/std/datetime/difference.ts",
+ "@std/datetime/format": "../tests/util/std/datetime/format.ts",
+ "@std/datetime/is-leap": "../tests/util/std/datetime/is_leap.ts",
+ "@std/datetime/parse": "../tests/util/std/datetime/parse.ts",
+ "@std/datetime/week-of-year": "../tests/util/std/datetime/week_of_year.ts",
+ "@std/dotenv": "../tests/util/std/dotenv/mod.ts",
+ "@std/dotenv/load": "../tests/util/std/dotenv/load.ts",
+ "@std/dotenv/parse": "../tests/util/std/dotenv/parse.ts",
+ "@std/dotenv/stringify": "../tests/util/std/dotenv/stringify.ts",
+ "@std/encoding": "../tests/util/std/encoding/mod.ts",
+ "@std/encoding/ascii85": "../tests/util/std/encoding/ascii85.ts",
+ "@std/encoding/base32": "../tests/util/std/encoding/base32.ts",
+ "@std/encoding/base58": "../tests/util/std/encoding/base58.ts",
+ "@std/encoding/base64": "../tests/util/std/encoding/base64.ts",
+ "@std/encoding/base64url": "../tests/util/std/encoding/base64url.ts",
+ "@std/encoding/hex": "../tests/util/std/encoding/hex.ts",
+ "@std/encoding/varint": "../tests/util/std/encoding/varint.ts",
+ "@std/expect": "../tests/util/std/expect/mod.ts",
+ "@std/expect/expect": "../tests/util/std/expect/expect.ts",
+ "@std/expect/fn": "../tests/util/std/expect/fn.ts",
+ "@std/fmt/bytes": "../tests/util/std/fmt/bytes.ts",
+ "@std/fmt/colors": "../tests/util/std/fmt/colors.ts",
+ "@std/fmt/duration": "../tests/util/std/fmt/duration.ts",
+ "@std/fmt/printf": "../tests/util/std/fmt/printf.ts",
+ "@std/front-matter": "../tests/util/std/front_matter/mod.ts",
+ "@std/front-matter/any": "../tests/util/std/front_matter/any.ts",
+ "@std/front-matter/json": "../tests/util/std/front_matter/json.ts",
+ "@std/front-matter/test": "../tests/util/std/front_matter/test.ts",
+ "@std/front-matter/toml": "../tests/util/std/front_matter/toml.ts",
+ "@std/front-matter/yaml": "../tests/util/std/front_matter/yaml.ts",
+ "@std/front-matter/types": "../tests/util/std/front_matter/types.ts",
+ "@std/fs": "../tests/util/std/fs/mod.ts",
+ "@std/fs/copy": "../tests/util/std/fs/copy.ts",
+ "@std/fs/empty-dir": "../tests/util/std/fs/empty_dir.ts",
+ "@std/fs/ensure-dir": "../tests/util/std/fs/ensure_dir.ts",
+ "@std/fs/ensure-file": "../tests/util/std/fs/ensure_file.ts",
+ "@std/fs/ensure-link": "../tests/util/std/fs/ensure_link.ts",
+ "@std/fs/ensure-symlink": "../tests/util/std/fs/ensure_symlink.ts",
+ "@std/fs/eol": "../tests/util/std/fs/eol.ts",
+ "@std/fs/exists": "../tests/util/std/fs/exists.ts",
+ "@std/fs/expand-glob": "../tests/util/std/fs/expand_glob.ts",
+ "@std/fs/move": "../tests/util/std/fs/move.ts",
+ "@std/fs/walk": "../tests/util/std/fs/walk.ts",
+ "@std/html": "../tests/util/std/html/mod.ts",
+ "@std/html/entities": "../tests/util/std/html/entities.ts",
+ "@std/html/named-entity-list.json": "../tests/util/std/html/named_entity_list.json",
+ "@std/http": "../tests/util/std/http/mod.ts",
+ "@std/http/cookie": "../tests/util/std/http/cookie.ts",
+ "@std/http/etag": "../tests/util/std/http/etag.ts",
+ "@std/http/file-server": "../tests/util/std/http/file_server.ts",
+ "@std/http/negotiation": "../tests/util/std/http/negotiation.ts",
+ "@std/http/server-sent-event-stream": "../tests/util/std/http/server_sent_event_stream.ts",
+ "@std/http/status": "../tests/util/std/http/status.ts",
+ "@std/http/signed-cookie": "../tests/util/std/http/signed_cookie.ts",
+ "@std/http/user-agent": "../tests/util/std/http/user_agent.ts",
+ "@std/ini": "../tests/util/std/ini/mod.ts",
+ "@std/ini/parse": "../tests/util/std/ini/parse.ts",
+ "@std/ini/stringify": "../tests/util/std/ini/stringify.ts",
+ "@std/internal": "../tests/util/std/internal/mod.ts",
+ "@std/internal/build-message": "../tests/util/std/internal/build_message.ts",
+ "@std/internal/diff-str": "../tests/util/std/internal/diff_str.ts",
+ "@std/internal/diff": "../tests/util/std/internal/diff.ts",
+ "@std/internal/format": "../tests/util/std/internal/format.ts",
+ "@std/internal/styles": "../tests/util/std/internal/styles.ts",
+ "@std/internal/types": "../tests/util/std/internal/types.ts",
+ "@std/io": "../tests/util/std/io/mod.ts",
+ "@std/io/buf-reader": "../tests/util/std/io/buf_reader.ts",
+ "@std/io/buf-writer": "../tests/util/std/io/buf_writer.ts",
+ "@std/io/buffer": "../tests/util/std/io/buffer.ts",
+ "@std/io/copy": "../tests/util/std/io/copy.ts",
+ "@std/io/copy-n": "../tests/util/std/io/copy_n.ts",
+ "@std/io/iterate-reader": "../tests/util/std/io/iterate_reader.ts",
+ "@std/io/limited-reader": "../tests/util/std/io/limited_reader.ts",
+ "@std/io/multi-reader": "../tests/util/std/io/multi_reader.ts",
+ "@std/io/read-all": "../tests/util/std/io/read_all.ts",
+ "@std/io/read-delim": "../tests/util/std/io/read_delim.ts",
+ "@std/io/read-int": "../tests/util/std/io/read_int.ts",
+ "@std/io/read-lines": "../tests/util/std/io/read_lines.ts",
+ "@std/io/read-long": "../tests/util/std/io/read_long.ts",
+ "@std/io/read-range": "../tests/util/std/io/read_range.ts",
+ "@std/io/read-short": "../tests/util/std/io/read_short.ts",
+ "@std/io/read-string-delim": "../tests/util/std/io/read_string_delim.ts",
+ "@std/io/reader-from-stream-reader": "../tests/util/std/io/reader_from_stream_reader.ts",
+ "@std/io/slice-long-to-bytes": "../tests/util/std/io/slice_long_to_bytes.ts",
+ "@std/io/string-reader": "../tests/util/std/io/string_reader.ts",
+ "@std/io/string-writer": "../tests/util/std/io/string_writer.ts",
+ "@std/io/to-readable-stream": "../tests/util/std/io/to_readable_stream.ts",
+ "@std/io/to-writable-stream": "../tests/util/std/io/to_writable_stream.ts",
+ "@std/io/types": "../tests/util/std/io/types.ts",
+ "@std/io/write-all": "../tests/util/std/io/write_all.ts",
+ "@std/json": "../tests/util/std/json/mod.ts",
+ "@std/json/types": "../tests/util/std/json/types.ts",
+ "@std/json/concatenated-json-parse-stream": "../tests/util/std/json/concatenated_json_parse_stream.ts",
+ "@std/json/parse-stream": "../tests/util/std/json/parse_stream.ts",
+ "@std/json/stringify-stream": "../tests/util/std/json/stringify_stream.ts",
+ "@std/jsonc": "../tests/util/std/jsonc/mod.ts",
+ "@std/jsonc/parse": "../tests/util/std/jsonc/parse.ts",
+ "@std/log": "../tests/util/std/log/mod.ts",
+ "@std/log/base-handler": "../tests/util/std/log/base_handler.ts",
+ "@std/log/console-handler": "../tests/util/std/log/console_handler.ts",
+ "@std/log/critical": "../tests/util/std/log/critical.ts",
+ "@std/log/debug": "../tests/util/std/log/debug.ts",
+ "@std/log/error": "../tests/util/std/log/error.ts",
+ "@std/log/file-handler": "../tests/util/std/log/file_handler.ts",
+ "@std/log/formatters": "../tests/util/std/log/formatters.ts",
+ "@std/log/get-logger": "../tests/util/std/log/get_logger.ts",
+ "@std/log/info": "../tests/util/std/log/info.ts",
+ "@std/log/levels": "../tests/util/std/log/levels.ts",
+ "@std/log/logger": "../tests/util/std/log/logger.ts",
+ "@std/log/rotating-file-handler": "../tests/util/std/log/rotating_file_handler.ts",
+ "@std/log/setup": "../tests/util/std/log/setup.ts",
+ "@std/log/warn": "../tests/util/std/log/warn.ts",
+ "@std/media-types": "../tests/util/std/media_types/mod.ts",
+ "@std/media-types/content-type": "../tests/util/std/media_types/content_type.ts",
+ "@std/media-types/extension": "../tests/util/std/media_types/extension.ts",
+ "@std/media-types/all-extensions": "../tests/util/std/media_types/all_extensions.ts",
+ "@std/media-types/format-media-type": "../tests/util/std/media_types/format_media_type.ts",
+ "@std/media-types/get-charset": "../tests/util/std/media_types/get_charset.ts",
+ "@std/media-types/parse-media-type": "../tests/util/std/media_types/parse_media_type.ts",
+ "@std/media-types/type-by-extension": "../tests/util/std/media_types/type_by_extension.ts",
+ "@std/msgpack": "../tests/util/std/msgpack/mod.ts",
+ "@std/msgpack/decode": "../tests/util/std/msgpack/decode.ts",
+ "@std/msgpack/encode": "../tests/util/std/msgpack/encode.ts",
+ "@std/net": "../tests/util/std/net/mod.ts",
+ "@std/net/get-available-port": "../tests/util/std/net/get_available_port.ts",
+ "@std/net/get-network-address": "../tests/util/std/net/get_network_address.ts",
+ "@std/path": "../tests/util/std/path/mod.ts",
+ "@std/path/basename": "../tests/util/std/path/basename.ts",
+ "@std/path/common": "../tests/util/std/path/common.ts",
+ "@std/path/constants": "../tests/util/std/path/constants.ts",
+ "@std/path/dirname": "../tests/util/std/path/dirname.ts",
+ "@std/path/extname": "../tests/util/std/path/extname.ts",
+ "@std/path/format": "../tests/util/std/path/format.ts",
+ "@std/path/from-file-url": "../tests/util/std/path/from_file_url.ts",
+ "@std/path/glob-to-regexp": "../tests/util/std/path/glob_to_regexp.ts",
+ "@std/path/is-absolute": "../tests/util/std/path/is_absolute.ts",
+ "@std/path/is-glob": "../tests/util/std/path/is_glob.ts",
+ "@std/path/join": "../tests/util/std/path/join.ts",
+ "@std/path/join-globs": "../tests/util/std/path/join_globs.ts",
+ "@std/path/normalize": "../tests/util/std/path/normalize.ts",
+ "@std/path/normalize-glob": "../tests/util/std/path/normalize_glob.ts",
+ "@std/path/parse": "../tests/util/std/path/parse.ts",
+ "@std/path/posix": "../tests/util/std/path/posix/mod.ts",
+ "@std/path/posix/basename": "../tests/util/std/path/posix/basename.ts",
+ "@std/path/posix/common": "../tests/util/std/path/posix/common.ts",
+ "@std/path/posix/constants": "../tests/util/std/path/posix/constants.ts",
+ "@std/path/posix/dirname": "../tests/util/std/path/posix/dirname.ts",
+ "@std/path/posix/extname": "../tests/util/std/path/posix/extname.ts",
+ "@std/path/posix/format": "../tests/util/std/path/posix/format.ts",
+ "@std/path/posix/from-file-url": "../tests/util/std/path/posix/from_file_url.ts",
+ "@std/path/posix/glob-to-regexp": "../tests/util/std/path/posix/glob_to_regexp.ts",
+ "@std/path/posix/is-absolute": "../tests/util/std/path/posix/is_absolute.ts",
+ "@std/path/posix/is-glob": "../tests/util/std/path/posix/is_glob.ts",
+ "@std/path/posix/join": "../tests/util/std/path/posix/join.ts",
+ "@std/path/posix/join-globs": "../tests/util/std/path/posix/join_globs.ts",
+ "@std/path/posix/normalize": "../tests/util/std/path/posix/normalize.ts",
+ "@std/path/posix/normalize-glob": "../tests/util/std/path/posix/normalize_glob.ts",
+ "@std/path/posix/parse": "../tests/util/std/path/posix/parse.ts",
+ "@std/path/posix/relative": "../tests/util/std/path/posix/relative.ts",
+ "@std/path/posix/resolve": "../tests/util/std/path/posix/resolve.ts",
+ "@std/path/posix/to-file-url": "../tests/util/std/path/posix/to_file_url.ts",
+ "@std/path/posix/to-namespaced-path": "../tests/util/std/path/posix/to_namespaced_path.ts",
+ "@std/path/relative": "../tests/util/std/path/relative.ts",
+ "@std/path/resolve": "../tests/util/std/path/resolve.ts",
+ "@std/path/to-file-url": "../tests/util/std/path/to_file_url.ts",
+ "@std/path/to-namespaced-path": "../tests/util/std/path/to_namespaced_path.ts",
+ "@std/path/types": "../tests/util/std/path/types.ts",
+ "@std/path/windows": "../tests/util/std/path/windows/mod.ts",
+ "@std/path/windows/basename": "../tests/util/std/path/windows/basename.ts",
+ "@std/path/windows/common": "../tests/util/std/path/windows/common.ts",
+ "@std/path/windows/constants": "../tests/util/std/path/windows/constants.ts",
+ "@std/path/windows/dirname": "../tests/util/std/path/windows/dirname.ts",
+ "@std/path/windows/extname": "../tests/util/std/path/windows/extname.ts",
+ "@std/path/windows/format": "../tests/util/std/path/windows/format.ts",
+ "@std/path/windows/from-file-url": "../tests/util/std/path/windows/from_file_url.ts",
+ "@std/path/windows/glob-to-regexp": "../tests/util/std/path/windows/glob_to_regexp.ts",
+ "@std/path/windows/is-absolute": "../tests/util/std/path/windows/is_absolute.ts",
+ "@std/path/windows/is-glob": "../tests/util/std/path/windows/is_glob.ts",
+ "@std/path/windows/join": "../tests/util/std/path/windows/join.ts",
+ "@std/path/windows/join-globs": "../tests/util/std/path/windows/join_globs.ts",
+ "@std/path/windows/normalize": "../tests/util/std/path/windows/normalize.ts",
+ "@std/path/windows/normalize-glob": "../tests/util/std/path/windows/normalize_glob.ts",
+ "@std/path/windows/parse": "../tests/util/std/path/windows/parse.ts",
+ "@std/path/windows/relative": "../tests/util/std/path/windows/relative.ts",
+ "@std/path/windows/resolve": "../tests/util/std/path/windows/resolve.ts",
+ "@std/path/windows/to-file-url": "../tests/util/std/path/windows/to_file_url.ts",
+ "@std/path/windows/to-namespaced-path": "../tests/util/std/path/windows/to_namespaced_path.ts",
+ "@std/regexp": "../tests/util/std/regexp/mod.ts",
+ "@std/regexp/escape": "../tests/util/std/regexp/escape.ts",
+ "@std/semver": "../tests/util/std/semver/mod.ts",
+ "@std/semver/can-parse": "../tests/util/std/semver/can_parse.ts",
+ "@std/semver/compare": "../tests/util/std/semver/compare.ts",
+ "@std/semver/difference": "../tests/util/std/semver/difference.ts",
+ "@std/semver/equals": "../tests/util/std/semver/equals.ts",
+ "@std/semver/format": "../tests/util/std/semver/format.ts",
+ "@std/semver/format-range": "../tests/util/std/semver/format_range.ts",
+ "@std/semver/greater-or-equal": "../tests/util/std/semver/greater_or_equal.ts",
+ "@std/semver/greater-than": "../tests/util/std/semver/greater_than.ts",
+ "@std/semver/greater-than-range": "../tests/util/std/semver/greater_than_range.ts",
+ "@std/semver/increment": "../tests/util/std/semver/increment.ts",
+ "@std/semver/is-range": "../tests/util/std/semver/is_range.ts",
+ "@std/semver/is-semver": "../tests/util/std/semver/is_semver.ts",
+ "@std/semver/less-or-equal": "../tests/util/std/semver/less_or_equal.ts",
+ "@std/semver/less-than": "../tests/util/std/semver/less_than.ts",
+ "@std/semver/less-than-range": "../tests/util/std/semver/less_than_range.ts",
+ "@std/semver/max-satisfying": "../tests/util/std/semver/max_satisfying.ts",
+ "@std/semver/min-satisfying": "../tests/util/std/semver/min_satisfying.ts",
+ "@std/semver/not-equals": "../tests/util/std/semver/not_equals.ts",
+ "@std/semver/parse": "../tests/util/std/semver/parse.ts",
+ "@std/semver/parse-range": "../tests/util/std/semver/parse_range.ts",
+ "@std/semver/range-intersects": "../tests/util/std/semver/range_intersects.ts",
+ "@std/semver/satisfies": "../tests/util/std/semver/satisfies.ts",
+ "@std/semver/try-parse": "../tests/util/std/semver/try_parse.ts",
+ "@std/semver/try-parse-range": "../tests/util/std/semver/try_parse_range.ts",
+ "@std/semver/types": "../tests/util/std/semver/types.ts",
+ "@std/streams": "../tests/util/std/streams/mod.ts",
+ "@std/streams/buffer": "../tests/util/std/streams/buffer.ts",
+ "@std/streams/byte-slice-stream": "../tests/util/std/streams/byte_slice_stream.ts",
+ "@std/streams/concat-readable-streams": "../tests/util/std/streams/concat_readable_streams.ts",
+ "@std/streams/delimiter-stream": "../tests/util/std/streams/delimiter_stream.ts",
+ "@std/streams/early-zip-readable-streams": "../tests/util/std/streams/early_zip_readable_streams.ts",
+ "@std/streams/limited-bytes-transform-stream": "../tests/util/std/streams/limited_bytes_transform_stream.ts",
+ "@std/streams/limited-transform-stream": "../tests/util/std/streams/limited_transform_stream.ts",
+ "@std/streams/merge-readable-streams": "../tests/util/std/streams/merge_readable_streams.ts",
+ "@std/streams/text-delimiter-stream": "../tests/util/std/streams/text_delimiter_stream.ts",
+ "@std/streams/text-line-stream": "../tests/util/std/streams/text_line_stream.ts",
+ "@std/streams/to-array-buffer": "../tests/util/std/streams/to_array_buffer.ts",
+ "@std/streams/to-blob": "../tests/util/std/streams/to_blob.ts",
+ "@std/streams/to-json": "../tests/util/std/streams/to_json.ts",
+ "@std/streams/to-text": "../tests/util/std/streams/to_text.ts",
+ "@std/streams/to-transform-stream": "../tests/util/std/streams/to_transform_stream.ts",
+ "@std/streams/zip-readable-streams": "../tests/util/std/streams/zip_readable_streams.ts",
+ "@std/testing/bdd": "../tests/util/std/testing/bdd.ts",
+ "@std/testing/mock": "../tests/util/std/testing/mock.ts",
+ "@std/testing/snapshot": "../tests/util/std/testing/snapshot.ts",
+ "@std/testing/time": "../tests/util/std/testing/time.ts",
+ "@std/testing/types": "../tests/util/std/testing/types.ts",
+ "@std/text": "../tests/util/std/text/mod.ts",
+ "@std/text/closest-string": "../tests/util/std/text/closest_string.ts",
+ "@std/text/compare-similarity": "../tests/util/std/text/compare_similarity.ts",
+ "@std/text/levenshtein-distance": "../tests/util/std/text/levenshtein_distance.ts",
+ "@std/text/to-camel-case": "../tests/util/std/text/to_camel_case.ts",
+ "@std/text/to-constant-case": "../tests/util/std/text/to_constant_case.ts",
+ "@std/text/to-kebab-case": "../tests/util/std/text/to_kebab_case.ts",
+ "@std/text/to-pascal-case": "../tests/util/std/text/to_pascal_case.ts",
+ "@std/text/to-snake-case": "../tests/util/std/text/to_snake_case.ts",
+ "@std/text/word-similarity-sort": "../tests/util/std/text/word_similarity_sort.ts",
+ "@std/toml": "../tests/util/std/toml/mod.ts",
+ "@std/toml/parse": "../tests/util/std/toml/parse.ts",
+ "@std/toml/stringify": "../tests/util/std/toml/stringify.ts",
+ "@std/ulid": "../tests/util/std/ulid/mod.ts",
+ "@std/ulid/decode-time": "../tests/util/std/ulid/decode_time.ts",
+ "@std/ulid/monotonic-ulid": "../tests/util/std/ulid/monotonic_ulid.ts",
+ "@std/ulid/ulid": "../tests/util/std/ulid/ulid.ts",
+ "@std/url": "../tests/util/std/url/mod.ts",
+ "@std/url/basename": "../tests/util/std/url/basename.ts",
+ "@std/url/dirname": "../tests/util/std/url/dirname.ts",
+ "@std/url/extname": "../tests/util/std/url/extname.ts",
+ "@std/url/join": "../tests/util/std/url/join.ts",
+ "@std/url/normalize": "../tests/util/std/url/normalize.ts",
+ "@std/uuid": "../tests/util/std/uuid/mod.ts",
+ "@std/uuid/common": "../tests/util/std/uuid/common.ts",
+ "@std/uuid/constants": "../tests/util/std/uuid/constants.ts",
+ "@std/uuid/v1": "../tests/util/std/uuid/v1.ts",
+ "@std/uuid/v3": "../tests/util/std/uuid/v3.ts",
+ "@std/uuid/v4": "../tests/util/std/uuid/v4.ts",
+ "@std/uuid/v5": "../tests/util/std/uuid/v5.ts",
+ "@std/webgpu": "../tests/util/std/webgpu/mod.ts",
+ "@std/webgpu/create-capture": "../tests/util/std/webgpu/create_capture.ts",
+ "@std/webgpu/describe-texture-format": "../tests/util/std/webgpu/describe_texture_format.ts",
+ "@std/webgpu/row-padding": "../tests/util/std/webgpu/row_padding.ts",
+ "@std/webgpu/texture-with-data": "../tests/util/std/webgpu/texture_with_data.ts",
+ "@std/yaml": "../tests/util/std/yaml/mod.ts",
+ "@std/yaml/parse": "../tests/util/std/yaml/parse.ts",
+ "@std/yaml/stringify": "../tests/util/std/yaml/stringify.ts"
}
}
diff --git a/tools/util.js b/tools/util.js
index 2f0904bc4..ed322d0d8 100644
--- a/tools/util.js
+++ b/tools/util.js
@@ -1,16 +1,10 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-import {
- dirname,
- fromFileUrl,
- join,
- resolve,
- toFileUrl,
-} from "@std/path/mod.ts";
+import { dirname, fromFileUrl, join, resolve, toFileUrl } from "@std/path";
import { wait } from "https://deno.land/x/wait@0.1.13/mod.ts";
export { dirname, fromFileUrl, join, resolve, toFileUrl };
-export { existsSync, walk } from "@std/fs/mod.ts";
-export { TextLineStream } from "@std/streams/text_line_stream.ts";
-export { delay } from "@std/async/delay.ts";
+export { existsSync, walk } from "@std/fs";
+export { TextLineStream } from "@std/streams/text-line-stream";
+export { delay } from "@std/async/delay";
// [toolName] --version output
const versions = {