summaryrefslogtreecommitdiff
path: root/tests/integration/cache_tests.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-04-29 10:08:27 -0400
committerGitHub <noreply@github.com>2024-04-29 10:08:27 -0400
commitda52058a945999d486b07700d2834f027a65947c (patch)
treeb6031c274cbc36dcefc6d681473e366cdb208c89 /tests/integration/cache_tests.rs
parentb02ffec37c73be8a73b95b33b32efa693e84e01b (diff)
chore: migrate bench, publish, and more itests to spec tests (#23584)
Diffstat (limited to 'tests/integration/cache_tests.rs')
-rw-r--r--tests/integration/cache_tests.rs72
1 files changed, 0 insertions, 72 deletions
diff --git a/tests/integration/cache_tests.rs b/tests/integration/cache_tests.rs
index ff206c654..5711b0f2e 100644
--- a/tests/integration/cache_tests.rs
+++ b/tests/integration/cache_tests.rs
@@ -1,53 +1,8 @@
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
-use test_util::env_vars_for_npm_tests;
-use test_util::itest;
use test_util::TestContext;
use test_util::TestContextBuilder;
-itest!(_037_fetch_multiple {
- args: "cache --reload --check=all run/fetch/test.ts run/fetch/other.ts",
- http_server: true,
- output: "cache/037_fetch_multiple.out",
-});
-
-itest!(_095_cache_with_bare_import {
- args: "cache cache/095_cache_with_bare_import.ts",
- output: "cache/095_cache_with_bare_import.ts.out",
- exit_code: 1,
-});
-
-itest!(cache_extensionless {
- args: "cache --reload --check=all http://localhost:4545/subdir/no_js_ext",
- output: "cache/cache_extensionless.out",
- http_server: true,
-});
-
-itest!(cache_random_extension {
- args:
- "cache --reload --check=all http://localhost:4545/subdir/no_js_ext@1.0.0",
- output: "cache/cache_random_extension.out",
- http_server: true,
-});
-
-itest!(performance_stats {
- args: "cache --reload --check=all --log-level debug run/002_hello.ts",
- output: "cache/performance_stats.out",
-});
-
-itest!(redirect_cache {
- http_server: true,
- args:
- "cache --reload --check=all http://localhost:4548/subdir/redirects/a.ts",
- output: "cache/redirect_cache.out",
-});
-
-itest!(ignore_require {
- args: "cache --reload --no-check cache/ignore_require.js",
- output_str: Some(""),
- exit_code: 0,
-});
-
// This test only runs on linux, because it hardcodes the XDG_CACHE_HOME env var
// which is only used on linux.
#[cfg(target_os = "linux")]
@@ -71,33 +26,6 @@ fn xdg_cache_home_dir() {
assert!(xdg_cache_home.read_dir().count() > 0);
}
-itest!(check_local_by_default {
- args: "cache --quiet cache/check_local_by_default.ts",
- output: "cache/check_local_by_default.out",
- http_server: true,
-});
-
-itest!(check_local_by_default2 {
- args: "cache --quiet cache/check_local_by_default2.ts",
- output: "cache/check_local_by_default2.out",
- http_server: true,
-});
-
-itest!(json_import {
- // should not error
- args: "cache --quiet cache/json_import/main.ts",
-});
-
-itest!(package_json_basic {
- args: "cache main.ts",
- output: "package_json/basic/main.cache.out",
- envs: env_vars_for_npm_tests(),
- http_server: true,
- cwd: Some("package_json/basic"),
- copy_temp_dir: Some("package_json/basic"),
- exit_code: 0,
-});
-
#[test]
fn cache_matching_package_json_dep_should_not_install_all() {
let context = TestContextBuilder::for_npm().use_temp_cwd().build();