diff --git a/tests/integration/task_tests.rs b/tests/integration/task_tests.rs index 895e643a05..d198a3be6f 100644 --- a/tests/integration/task_tests.rs +++ b/tests/integration/task_tests.rs @@ -31,17 +31,6 @@ // http_server: true, // }); -// TODO(2.0): not entirely clear what's wrong with this test -// itest!(task_both_package_json_selected { -// args: "task bin asdf", -// cwd: Some("task/both/"), -// output: "task/both/package_json_selected.out", -// copy_temp_dir: Some("task/both/"), -// envs: env_vars_for_npm_tests(), -// exit_code: 0, -// http_server: true, -// }); - // TODO(2.0): not entirely clear what's wrong with this test but it hangs for more than 60s // itest!(task_npx_on_own { // args: "task on-own", diff --git a/tests/specs/task/both_package_json_selected/__test__.jsonc b/tests/specs/task/both_package_json_selected/__test__.jsonc new file mode 100644 index 0000000000..acdb7892d0 --- /dev/null +++ b/tests/specs/task/both_package_json_selected/__test__.jsonc @@ -0,0 +1,10 @@ +{ + "tempDir": true, + "steps": [ + { + "args": "install", + "output": "install.out" + }, + { "args": "task bin asdf", "output": "package_json_selected.out" } + ] +} diff --git a/tests/testdata/task/both/deno.json b/tests/specs/task/both_package_json_selected/deno.json similarity index 100% rename from tests/testdata/task/both/deno.json rename to tests/specs/task/both_package_json_selected/deno.json diff --git a/tests/testdata/task/both/package_json_selected.out b/tests/specs/task/both_package_json_selected/install.out similarity index 67% rename from tests/testdata/task/both/package_json_selected.out rename to tests/specs/task/both_package_json_selected/install.out index c72baeb640..645501a3d9 100644 --- a/tests/testdata/task/both/package_json_selected.out +++ b/tests/specs/task/both_package_json_selected/install.out @@ -1,8 +1,3 @@ Download http://localhost:4260/@denotest/bin Download http://localhost:4260/@denotest/bin/1.0.0.tgz Initialize @denotest/bin@1.0.0 -Task bin cli-esm testing this out "asdf" -testing -this -out -asdf diff --git a/tests/testdata/task/both/package.json b/tests/specs/task/both_package_json_selected/package.json similarity index 100% rename from tests/testdata/task/both/package.json rename to tests/specs/task/both_package_json_selected/package.json diff --git a/tests/specs/task/both_package_json_selected/package_json_selected.out b/tests/specs/task/both_package_json_selected/package_json_selected.out new file mode 100644 index 0000000000..6c42a2efb5 --- /dev/null +++ b/tests/specs/task/both_package_json_selected/package_json_selected.out @@ -0,0 +1,5 @@ +Task bin cli-esm testing this out "asdf" +testing +this +out +asdf diff --git a/tools/lint.js b/tools/lint.js index 496e83fc49..6cb27f8dc9 100755 --- a/tools/lint.js +++ b/tools/lint.js @@ -220,7 +220,7 @@ async function ensureNoNewITests() { "repl_tests.rs": 0, "run_tests.rs": 331, "shared_library_tests.rs": 0, - "task_tests.rs": 4, + "task_tests.rs": 3, "test_tests.rs": 0, "upgrade_tests.rs": 0, "vendor_tests.rs": 1,