summaryrefslogtreecommitdiff
path: root/cli/worker.rs
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2023-11-24 19:46:16 -0800
committerGitHub <noreply@github.com>2023-11-25 04:46:16 +0100
commit89424f8e4a339d42f17e772f5f65fc89e024a8ca (patch)
treeffe7c8ac457810bb53d63fac4082bff21eb0d6f1 /cli/worker.rs
parent7d8f0ae038d44dd3fe25b3fa98157126f01b179b (diff)
perf: move "cli/js/40_testing.js" out of main snapshot (#21212)
Closes https://github.com/denoland/deno/issues/21136 --------- Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/worker.rs')
-rw-r--r--cli/worker.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/cli/worker.rs b/cli/worker.rs
index 8ce46c077..361aad2ec 100644
--- a/cli/worker.rs
+++ b/cli/worker.rs
@@ -639,9 +639,13 @@ impl CliMainWorkerFactory {
options,
);
- if self.shared.subcommand.is_test_or_jupyter() {
+ if self.shared.subcommand.needs_test() {
worker.js_runtime.execute_script_static(
- "40_jupyter.js",
+ "ext:cli/40_testing.js",
+ include_str!("js/40_testing.js"),
+ )?;
+ worker.js_runtime.execute_script_static(
+ "ext:cli/40_jupyter.js",
include_str!("js/40_jupyter.js"),
)?;
}