diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-09-16 14:39:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-16 15:39:58 +0200 |
commit | 968f441da32ae5fc3783a4f9bcda3d34fa276b4d (patch) | |
tree | 9dee28c5203fd326ddc0c60020e97bd1a6a12748 /tests/integration/run_tests.rs | |
parent | 8fa92228bb748bdc59e0fe003108dcaea0a18d10 (diff) |
test: rewrite some ignored tests to spec tests (#25652)
Ref https://github.com/denoland/deno/issues/25241
Rewritten these tests:
- check::package_json_basic
- check::package_json_fail_check
- check::package_json_with_deno_json
- info::package_json_basic
- test::package_json_basic
- run::package_json_auto_discovered_for_npm_binary
- run::package_json_with_deno_json
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 |