summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-02-24 14:23:07 -0500
committerGitHub <noreply@github.com>2023-02-24 19:23:07 +0000
commita27d0885f489f5640e38922fad8c8a1c49ae0aa4 (patch)
tree6bc12ec54ade2b38e79e80a379ad0809d17f559d /cli/tests
parent7ad64283a16cb0bfc9671ed482890d005eed9dcc (diff)
feat: add `DENO_NO_PACKAGE_JSON` env var (#17926)
Depends on #17924 Part of #17916
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration/run_tests.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs
index f2d23a061..012b744ba 100644
--- a/cli/tests/integration/run_tests.rs
+++ b/cli/tests/integration/run_tests.rs
@@ -2786,6 +2786,13 @@ itest!(package_json_not_auto_discovered_no_npm {
cwd: Some("run/with_package_json/no_deno_json/"),
});
+itest!(package_json_not_auto_discovered_env_var {
+ args: "run -L debug -A noconfig.ts",
+ output: "run/with_package_json/no_deno_json/noconfig.out",
+ cwd: Some("run/with_package_json/no_deno_json/"),
+ envs: vec![("DENO_NO_PACKAGE_JSON".to_string(), "1".to_string())],
+});
+
itest!(
package_json_auto_discovered_node_modules_relative_package_json {
args: "run -A main.js",