summaryrefslogtreecommitdiff
path: root/cli/tools/mod.rs
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2021-08-27 03:21:58 +0800
committerGitHub <noreply@github.com>2021-08-26 21:21:58 +0200
commitb9a965c607966efff91118e9a6f604c8f48ba88e (patch)
treeee8d2b7ae8d445fd42afd3ca986ba7429f926ab4 /cli/tools/mod.rs
parent192af1e7bc8e07c8490a9747b820a016427df38e (diff)
refactor(cli): introduce module specifier test modes (#11769)
This commit merges the two vectors of specifiers into a single one introducing the concept of a "TestMode" which is a tri-state enum specifying how a specifier is to be tested (as documentation, as an executable module or as both). This is determined during the collection phase and determines how a specifier will be executed based on how the specifier was collected (directly or not) and if it has an eligible media_type when fetched. For example "deno test README.md" is marked as documentation because, while it is a direct inclusion it is not an executable media type therefore will only have the fenced code blocks that can be parsed from it tested.
Diffstat (limited to 'cli/tools/mod.rs')
-rw-r--r--cli/tools/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tools/mod.rs b/cli/tools/mod.rs
index cd00f6a86..74d6431ed 100644
--- a/cli/tools/mod.rs
+++ b/cli/tools/mod.rs
@@ -7,5 +7,5 @@ pub mod installer;
pub mod lint;
pub mod repl;
pub mod standalone;
-pub mod test_runner;
+pub mod test;
pub mod upgrade;