diff options
author | Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com> | 2024-08-29 15:57:43 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-29 15:57:43 -0700 |
commit | 86d5b919d8ef55070e95230c9268f69cf58c25c8 (patch) | |
tree | 7d005a7116ecb44fc95e64489eac66f786d2ef11 /tests/specs/npm | |
parent | 0fb8df6c0ce582c947a8e165c7fb31cd4ec0c3ca (diff) |
feat(config): Node modules option for 2.0 (#25299)
Diffstat (limited to 'tests/specs/npm')
-rw-r--r-- | tests/specs/npm/bin_entries_prefer_closer/deno.json | 2 | ||||
-rw-r--r-- | tests/specs/npm/future_node_modules_dir_setting/__test__.jsonc | 4 | ||||
-rw-r--r-- | tests/specs/npm/lifecycle_scripts/__test__.jsonc | 7 |
3 files changed, 10 insertions, 3 deletions
diff --git a/tests/specs/npm/bin_entries_prefer_closer/deno.json b/tests/specs/npm/bin_entries_prefer_closer/deno.json index 176354f98..b2edaa035 100644 --- a/tests/specs/npm/bin_entries_prefer_closer/deno.json +++ b/tests/specs/npm/bin_entries_prefer_closer/deno.json @@ -1,3 +1,3 @@ { - "nodeModulesDir": true + "nodeModules": "local-auto" } diff --git a/tests/specs/npm/future_node_modules_dir_setting/__test__.jsonc b/tests/specs/npm/future_node_modules_dir_setting/__test__.jsonc index b7c3b90d7..bc39e85da 100644 --- a/tests/specs/npm/future_node_modules_dir_setting/__test__.jsonc +++ b/tests/specs/npm/future_node_modules_dir_setting/__test__.jsonc @@ -10,11 +10,11 @@ "exitCode": 1 }, { // this should override byonm - "args": "run --node-modules-dir=false --quiet main.ts", + "args": "run --node-modules=global-auto --quiet main.ts", "output": "main.out" }, { // same with this - "args": "run --node-modules-dir --quiet main.ts", + "args": "run --node-modules=local-auto --quiet main.ts", "output": "main.out" }] } diff --git a/tests/specs/npm/lifecycle_scripts/__test__.jsonc b/tests/specs/npm/lifecycle_scripts/__test__.jsonc index 302b40d1e..c62bc47b4 100644 --- a/tests/specs/npm/lifecycle_scripts/__test__.jsonc +++ b/tests/specs/npm/lifecycle_scripts/__test__.jsonc @@ -81,6 +81,13 @@ { "args": [ "eval", + "Deno.removeSync('./deno.json')" + ], + "output": "[WILDCARD]" + }, + { + "args": [ + "eval", "Deno.writeTextFileSync('package.json', '{\"dependencies\":{ \"@denotest/node-lifecycle-scripts\": \"*\" } }')" ], "output": "" |