summaryrefslogtreecommitdiff
path: root/cli/tests/testdata
diff options
context:
space:
mode:
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");
+}