diff options
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": "" |