diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-09-24 02:33:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 03:33:03 +0200 |
commit | 74e294c8c1873db447af0f02229470f8d78fffdd (patch) | |
tree | 49a9bf57993a30fdb5eacac3901cce3c8baf00ae /tests/specs | |
parent | d8036ab20c18572fdda26fa7398a152c734c62ed (diff) |
refactor: reenable more tests after DENO_FUTURE migration (#25752)
Rewrites and reenables following tests:
- `task::task_both_package_json_selected`
Diffstat (limited to 'tests/specs')
5 files changed, 33 insertions, 0 deletions
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 000000000..acdb7892d --- /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/specs/task/both_package_json_selected/deno.json b/tests/specs/task/both_package_json_selected/deno.json new file mode 100644 index 000000000..1038609a4 --- /dev/null +++ b/tests/specs/task/both_package_json_selected/deno.json @@ -0,0 +1,6 @@ +{ + "tasks": { + "output": "deno eval 'console.log(1)'", + "other": "deno eval 'console.log(2)'" + } +} diff --git a/tests/specs/task/both_package_json_selected/install.out b/tests/specs/task/both_package_json_selected/install.out new file mode 100644 index 000000000..645501a3d --- /dev/null +++ b/tests/specs/task/both_package_json_selected/install.out @@ -0,0 +1,3 @@ +Download http://localhost:4260/@denotest/bin +Download http://localhost:4260/@denotest/bin/1.0.0.tgz +Initialize @denotest/bin@1.0.0 diff --git a/tests/specs/task/both_package_json_selected/package.json b/tests/specs/task/both_package_json_selected/package.json new file mode 100644 index 000000000..708ccc6b1 --- /dev/null +++ b/tests/specs/task/both_package_json_selected/package.json @@ -0,0 +1,9 @@ +{ + "scripts": { + "bin": "cli-esm testing this out", + "output": "echo should never be called or shown" + }, + "dependencies": { + "other": "npm:@denotest/bin@1.0" + } +} 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 000000000..6c42a2efb --- /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 |