From 7b982829930bfcfbb70d0bb377f90939d122efed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 14 Sep 2022 16:41:47 +0200 Subject: fix(npm): binary entrypoint for .js or no extension (#15900) --- cli/tests/integration/npm_tests.rs | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'cli/tests/integration/npm_tests.rs') 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", -- cgit v1.2.3