diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/registry/npm/@denotest/bin/1.0.0/cli-cjs.js | 2 | ||||
-rw-r--r-- | tests/specs/npm/bin_entries_prefer_closer/__test__.jsonc | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/registry/npm/@denotest/bin/1.0.0/cli-cjs.js b/tests/registry/npm/@denotest/bin/1.0.0/cli-cjs.js index 7b6ba2724..671e0c4a5 100644 --- a/tests/registry/npm/@denotest/bin/1.0.0/cli-cjs.js +++ b/tests/registry/npm/@denotest/bin/1.0.0/cli-cjs.js @@ -1,3 +1,5 @@ +#!/usr/bin/env -S node + const process = require("process"); for (const arg of process.argv.slice(2)) { diff --git a/tests/specs/npm/bin_entries_prefer_closer/__test__.jsonc b/tests/specs/npm/bin_entries_prefer_closer/__test__.jsonc index 92d43e761..4e9c682df 100644 --- a/tests/specs/npm/bin_entries_prefer_closer/__test__.jsonc +++ b/tests/specs/npm/bin_entries_prefer_closer/__test__.jsonc @@ -18,6 +18,13 @@ { "args": "task run-no-ext", "output": "Task run-no-ext cli-no-ext hello world\n@denotest/bin 0.7.0\n" + }, + { + // even though we didn't put it in .bin, make sure the bin entry is marked executable + "if": "unix", + "commandName": "node_modules/.deno/@denotest+bin@1.0.0/node_modules/@denotest/bin/cli-cjs.js", + "args": "hello", + "output": "hello\n" } ] } |