diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-02-24 13:51:21 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-24 13:51:21 -0500 |
commit | 7ad64283a16cb0bfc9671ed482890d005eed9dcc (patch) | |
tree | aa8214250968627f909d1b5e8bd612f1c3a7c3e2 /cli/tests/testdata | |
parent | 6472afd12bd5978869370948ef2357c810cb6071 (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.out | 3 | ||||
-rw-r--r-- | cli/tests/testdata/run/with_package_json/no_deno_json/noconfig.ts | 8 |
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"); +} |