summaryrefslogtreecommitdiff
path: root/cli/tests/integration/cache_tests.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-06-06 17:07:46 -0400
committerGitHub <noreply@github.com>2023-06-06 17:07:46 -0400
commit2aba4365ae620a8f097800e7cf85ff86f566b69a (patch)
tree5e3e9b30742455c72f2edc3fa5db0b7cbabe46e8 /cli/tests/integration/cache_tests.rs
parent455b0eb8bb8445f80d9c80a9161f18c1dede5733 (diff)
perf(cli): conditionally load typescript declaration files (#19392)
Closes #18583
Diffstat (limited to 'cli/tests/integration/cache_tests.rs')
-rw-r--r--cli/tests/integration/cache_tests.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/tests/integration/cache_tests.rs b/cli/tests/integration/cache_tests.rs
index 7975cbf19..e8449ca05 100644
--- a/cli/tests/integration/cache_tests.rs
+++ b/cli/tests/integration/cache_tests.rs
@@ -1,6 +1,7 @@
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
use test_util::env_vars_for_npm_tests;
+use test_util::TestContext;
use test_util::TestContextBuilder;
itest!(_036_import_map_fetch {
@@ -181,3 +182,12 @@ fn cache_put_overwrite() {
output.assert_matches_text("res1\n");
output.assert_exit_code(0);
}
+
+#[test]
+fn loads_type_graph() {
+ let output = TestContext::default()
+ .new_command()
+ .args("cache --reload -L debug run/type_directives_js_main.js")
+ .run();
+ output.assert_matches_text("[WILDCARD] - FileFetcher::fetch() - specifier: file:///[WILDCARD]/subdir/type_reference.d.ts[WILDCARD]");
+}