diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-09-14 16:41:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-14 10:41:47 -0400 |
commit | 7b982829930bfcfbb70d0bb377f90939d122efed (patch) | |
tree | 01c49fa78d8dbadbce770bb4be60899d2f0349eb /cli/tests/integration/npm_tests.rs | |
parent | 6a9acc81420a5e87e61de48b25af85d961e35730 (diff) |
fix(npm): binary entrypoint for .js or no extension (#15900)
Diffstat (limited to 'cli/tests/integration/npm_tests.rs')
-rw-r--r-- | cli/tests/integration/npm_tests.rs | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/cli/tests/integration/npm_tests.rs b/cli/tests/integration/npm_tests.rs index 85c31786c..49bac64fb 100644 --- a/cli/tests/integration/npm_tests.rs +++ b/cli/tests/integration/npm_tests.rs @@ -387,13 +387,27 @@ itest!(deno_run_cowthink { http_server: true, }); -itest!(deno_run_esm_module { - args: "run --unstable -A --quiet npm:@denotest/esm-bin this is a test", +itest!(deno_run_bin_esm { + args: "run --unstable -A --quiet npm:@denotest/bin/cli-esm this is a test", output: "npm/deno_run_esm.out", envs: env_vars(), http_server: true, }); +itest!(deno_run_bin_no_ext { + args: "run --unstable -A --quiet npm:@denotest/bin/cli-no-ext this is a test", + output: "npm/deno_run_no_ext.out", + envs: env_vars(), + http_server: true, +}); + +itest!(deno_run_bin_cjs { + args: "run --unstable -A --quiet npm:@denotest/bin/cli-cjs this is a test", + output: "npm/deno_run_cjs.out", + envs: env_vars(), + http_server: true, +}); + itest!(deno_run_non_existent { args: "run --unstable npm:mkdirp@0.5.125", output: "npm/deno_run_non_existent.out", |