summaryrefslogtreecommitdiff
path: root/tests/integration
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration')
-rw-r--r--tests/integration/check_tests.rs33
-rw-r--r--tests/integration/info_tests.rs12
-rw-r--r--tests/integration/run_tests.rs36
-rw-r--r--tests/integration/test_tests.rs12
4 files changed, 0 insertions, 93 deletions
diff --git a/tests/integration/check_tests.rs b/tests/integration/check_tests.rs
index d3111727c..1ccec41eb 100644
--- a/tests/integration/check_tests.rs
+++ b/tests/integration/check_tests.rs
@@ -246,39 +246,6 @@ itest!(check_dts {
exit_code: 1,
});
-// TODO(2.0): this should be rewritten to a spec test and first run `deno install`
-// itest!(package_json_basic {
-// args: "check main.ts",
-// output: "package_json/basic/main.check.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,
-// });
-
-// TODO(2.0): this should be rewritten to a spec test and first run `deno install`
-// itest!(package_json_fail_check {
-// args: "check --quiet fail_check.ts",
-// output: "package_json/basic/fail_check.check.out",
-// envs: env_vars_for_npm_tests(),
-// http_server: true,
-// cwd: Some("package_json/basic"),
-// copy_temp_dir: Some("package_json/basic"),
-// exit_code: 1,
-// });
-
-// TODO(2.0): this should be rewritten to a spec test and first run `deno install`
-// itest!(package_json_with_deno_json {
-// args: "check --quiet main.ts",
-// output: "package_json/deno_json/main.check.out",
-// cwd: Some("package_json/deno_json/"),
-// copy_temp_dir: Some("package_json/deno_json/"),
-// envs: env_vars_for_npm_tests(),
-// http_server: true,
-// exit_code: 1,
-// });
-
#[test]
fn check_error_in_dep_then_fix() {
let test_context = TestContextBuilder::new().use_temp_cwd().build();
diff --git a/tests/integration/info_tests.rs b/tests/integration/info_tests.rs
index 38dd9448f..7699baba8 100644
--- a/tests/integration/info_tests.rs
+++ b/tests/integration/info_tests.rs
@@ -2,7 +2,6 @@
use test_util as util;
use test_util::itest;
-// use util::env_vars_for_npm_tests;
use util::TestContextBuilder;
#[test]
@@ -110,17 +109,6 @@ itest!(with_config_override {
output: "info/with_config/with_config.out",
});
-// TODO(2.0): this test should be a spec test and first run `deno install`
-// itest!(package_json_basic {
-// args: "info --quiet main.ts",
-// output: "package_json/basic/main.info.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,
-// });
-
itest!(info_import_map {
args: "info preact/debug",
output: "info/with_import_map/with_import_map.out",
diff --git a/tests/integration/run_tests.rs b/tests/integration/run_tests.rs
index c10f0d1ea..95b6e5a01 100644
--- a/tests/integration/run_tests.rs
+++ b/tests/integration/run_tests.rs
@@ -3359,42 +3359,6 @@ itest!(
}
);
-// TODO(2.0): this should be rewritten to a spec test and first run `deno install`
-// itest!(package_json_auto_discovered_for_npm_binary {
-// args: "run -L debug -A npm:@denotest/bin/cli-esm this is a test",
-// output: "run/with_package_json/npm_binary/main.out",
-// cwd: Some("run/with_package_json/npm_binary/"),
-// copy_temp_dir: Some("run/with_package_json/"),
-// envs: env_vars_for_npm_tests(),
-// http_server: true,
-// });
-
-// TODO(2.0): this should be rewritten to a spec test and first run `deno install`
-#[test]
-#[ignore]
-fn package_json_with_deno_json() {
- let context = TestContextBuilder::for_npm()
- .use_copy_temp_dir("package_json/deno_json/")
- .cwd("package_json/deno_json/")
- .build();
- let output = context.new_command().args("run --quiet -A main.ts").run();
- output.assert_matches_file("package_json/deno_json/main.out");
-
- assert!(context
- .temp_dir()
- .path()
- .join("package_json/deno_json/deno.lock")
- .exists());
-
- // run again and ensure the top level install doesn't happen twice
- let output = context
- .new_command()
- .args("run --log-level=debug -A main.ts")
- .run();
- let output = output.combined_output();
- assert_contains!(output, "Skipping top level install.");
-}
-
#[test]
fn package_json_no_node_modules_dir_created() {
// it should not create a node_modules directory
diff --git a/tests/integration/test_tests.rs b/tests/integration/test_tests.rs
index f6c48654d..207e0f260 100644
--- a/tests/integration/test_tests.rs
+++ b/tests/integration/test_tests.rs
@@ -6,7 +6,6 @@ use test_util as util;
use test_util::itest;
use util::assert_contains;
use util::assert_not_contains;
-// use util::env_vars_for_npm_tests;
use util::wildcard_match;
use util::TestContext;
use util::TestContextBuilder;
@@ -599,17 +598,6 @@ fn sigint_with_hanging_test() {
);
}
-// TODO(2.0): this should be rewritten to a spec test and first run `deno install`
-// itest!(package_json_basic {
-// args: "test",
-// output: "package_json/basic/lib.test.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,
-// });
-
itest!(test_replace_timers {
args: "test test/replace_timers.js",
output: "test/replace_timers.js.out",