diff options
Diffstat (limited to 'tests/integration/run_tests.rs')
-rw-r--r-- | tests/integration/run_tests.rs | 36 |
1 files changed, 0 insertions, 36 deletions
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 |