summaryrefslogtreecommitdiff
path: root/cli/tests/testdata
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-02-24 13:51:21 -0500
committerGitHub <noreply@github.com>2023-02-24 13:51:21 -0500
commit7ad64283a16cb0bfc9671ed482890d005eed9dcc (patch)
treeaa8214250968627f909d1b5e8bd612f1c3a7c3e2 /cli/tests/testdata
parent6472afd12bd5978869370948ef2357c810cb6071 (diff)
fix(npm): package.json auto-discovery should respect `--no-config` and `--no-npm` (#17924)
Part of #17916
Diffstat (limited to 'cli/tests/testdata')
-rw-r--r--cli/tests/testdata/run/with_package_json/no_deno_json/noconfig.out3
-rw-r--r--cli/tests/testdata/run/with_package_json/no_deno_json/noconfig.ts8
2 files changed, 11 insertions, 0 deletions
diff --git a/cli/tests/testdata/run/with_package_json/no_deno_json/noconfig.out b/cli/tests/testdata/run/with_package_json/no_deno_json/noconfig.out
new file mode 100644
index 000000000..ee6e346de
--- /dev/null
+++ b/cli/tests/testdata/run/with_package_json/no_deno_json/noconfig.out
@@ -0,0 +1,3 @@
+[WILDCARD]package.json auto-discovery is disabled
+[WILDCARD]
+success
diff --git a/cli/tests/testdata/run/with_package_json/no_deno_json/noconfig.ts b/cli/tests/testdata/run/with_package_json/no_deno_json/noconfig.ts
new file mode 100644
index 000000000..73b348fbc
--- /dev/null
+++ b/cli/tests/testdata/run/with_package_json/no_deno_json/noconfig.ts
@@ -0,0 +1,8 @@
+// ensure the cwd is this directory
+const cwd = Deno.cwd();
+if (!cwd.endsWith("no_deno_json")) {
+ console.log(cwd);
+ throw "FAIL";
+} else {
+ console.log("success");
+}