From f5e46c9bf2f50d66a953fa133161fc829cecff06 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Sat, 10 Feb 2024 13:22:13 -0700 Subject: chore: move cli/tests/ -> tests/ (#22369) This looks like a massive PR, but it's only a move from cli/tests -> tests, and updates of relative paths for files. This is the first step towards aggregate all of the integration test files under tests/, which will lead to a set of integration tests that can run without the CLI binary being built. While we could leave these tests under `cli`, it would require us to keep a more complex directory structure for the various test runners. In addition, we have a lot of complexity to ignore various test files in the `cli` project itself (cargo publish exclusion rules, autotests = false, etc). And finally, the `tests/` folder will eventually house the `test_ffi`, `test_napi` and other testing code, reducing the size of the root repo directory. For easier review, the extremely large and noisy "move" is in the first commit (with no changes -- just a move), while the remainder of the changes to actual files is in the second commit. --- tools/node_compat/TODO.md | 2 +- tools/node_compat/setup.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'tools/node_compat') diff --git a/tools/node_compat/TODO.md b/tools/node_compat/TODO.md index d22e8811d..eb288c65e 100644 --- a/tools/node_compat/TODO.md +++ b/tools/node_compat/TODO.md @@ -1,7 +1,7 @@ # Remaining Node Tests -NOTE: This file should not be manually edited. Please edit `cli/tests/node_compat/config.json` and run `deno task setup` in `tools/node_compat` dir instead. +NOTE: This file should not be manually edited. Please edit `tests/node_compat/config.json` and run `deno task setup` in `tools/node_compat` dir instead. Total: 2999 diff --git a/tools/node_compat/setup.ts b/tools/node_compat/setup.ts index 4770fbc50..47588350d 100755 --- a/tools/node_compat/setup.ts +++ b/tools/node_compat/setup.ts @@ -1,7 +1,7 @@ #!/usr/bin/env -S deno run --allow-read=. --allow-write=. --allow-run=git // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. -/** This copies the test files according to the config file `cli/tests/node_compat/config.jsonc` */ +/** This copies the test files according to the config file `tests/node_compat/config.jsonc` */ import { walk } from "@test_util/std/fs/walk.ts"; import { sep } from "@test_util/std/path/mod.ts"; @@ -10,7 +10,7 @@ import { writeAll } from "@test_util/std/streams/write_all.ts"; import { withoutAll } from "@test_util/std/collections/without_all.ts"; import { relative } from "@test_util/std/path/posix.ts"; -import { config, ignoreList } from "../../cli/tests/node_compat/common.ts"; +import { config, ignoreList } from "../../tests/node_compat/common.ts"; const encoder = new TextEncoder(); @@ -39,7 +39,7 @@ const NODE_IGNORED_TEST_DIRS = [ const VENDORED_NODE_TEST = new URL("node/test/", import.meta.url); const NODE_COMPAT_TEST_DEST_URL = new URL( - "../../cli/tests/node_compat/test/", + "../../tests/node_compat/test/", import.meta.url, ); @@ -76,7 +76,7 @@ async function updateToDo() { await file.write(encoder.encode(` # Remaining Node Tests -NOTE: This file should not be manually edited. Please edit \`cli/tests/node_compat/config.json\` and run \`deno task setup\` in \`tools/node_compat\` dir instead. +NOTE: This file should not be manually edited. Please edit \`tests/node_compat/config.json\` and run \`deno task setup\` in \`tools/node_compat\` dir instead. Total: ${missingTests.length} -- cgit v1.2.3