diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2024-04-05 10:34:51 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-05 10:34:51 -0400 |
| commit | 049e703331409db8c4b4e2cc7d969f471c229df3 (patch) | |
| tree | a31458a651e931d2047c348bdcbe0379470bf925 /tests/specs/npm/future_auto_install_no_package_json | |
| parent | ee4bfe16009c3a04c9015bf9fca0c9b0f9a3a601 (diff) | |
FUTURE: override byonm with nodeModulesDir setting (#23222)
Makes the `"nodeModulesDir"` setting take precedence over byonm when
using `DENO_FUTURE`.
Diffstat (limited to 'tests/specs/npm/future_auto_install_no_package_json')
3 files changed, 15 insertions, 0 deletions
diff --git a/tests/specs/npm/future_auto_install_no_package_json/__test__.jsonc b/tests/specs/npm/future_auto_install_no_package_json/__test__.jsonc new file mode 100644 index 000000000..ea3cce88f --- /dev/null +++ b/tests/specs/npm/future_auto_install_no_package_json/__test__.jsonc @@ -0,0 +1,10 @@ +{ + "envs": { + "DENO_FUTURE": "1" + }, + "steps": [{ + // should auto-install because no package.json + "args": "run --quiet main.ts", + "output": "main.out" + }] +} diff --git a/tests/specs/npm/future_auto_install_no_package_json/main.out b/tests/specs/npm/future_auto_install_no_package_json/main.out new file mode 100644 index 000000000..0cfbf0888 --- /dev/null +++ b/tests/specs/npm/future_auto_install_no_package_json/main.out @@ -0,0 +1 @@ +2 diff --git a/tests/specs/npm/future_auto_install_no_package_json/main.ts b/tests/specs/npm/future_auto_install_no_package_json/main.ts new file mode 100644 index 000000000..2140d5546 --- /dev/null +++ b/tests/specs/npm/future_auto_install_no_package_json/main.ts @@ -0,0 +1,4 @@ +import { getValue, setValue } from "npm:@denotest/esm-basic"; + +setValue(2); +console.log(getValue()); |
