summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/run
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2022-02-25 14:39:18 +0900
committerGitHub <noreply@github.com>2022-02-25 14:39:18 +0900
commit111c343281b559ea51fd66c2ddc260549406a822 (patch)
tree28cb914bc72b6c3f390ef12250c02c9a6177bcdd /cli/tests/testdata/run
parent3b12afd0723b288feb7c8c53ac3938a17fd0e57c (diff)
fix(cli): disable config discovery for remote script (#13745)
Diffstat (limited to 'cli/tests/testdata/run')
-rw-r--r--cli/tests/testdata/run/with_config/deno.jsonc6
-rw-r--r--cli/tests/testdata/run/with_config/frontend_work.ts4
-rw-r--r--cli/tests/testdata/run/with_config/server_side_work.ts2
3 files changed, 12 insertions, 0 deletions
diff --git a/cli/tests/testdata/run/with_config/deno.jsonc b/cli/tests/testdata/run/with_config/deno.jsonc
new file mode 100644
index 000000000..9017fac30
--- /dev/null
+++ b/cli/tests/testdata/run/with_config/deno.jsonc
@@ -0,0 +1,6 @@
+{
+ // type settings for frontend dev
+ "compilerOptions": {
+ "lib": ["esnext", "dom"]
+ }
+}
diff --git a/cli/tests/testdata/run/with_config/frontend_work.ts b/cli/tests/testdata/run/with_config/frontend_work.ts
new file mode 100644
index 000000000..783af44e4
--- /dev/null
+++ b/cli/tests/testdata/run/with_config/frontend_work.ts
@@ -0,0 +1,4 @@
+function _main() {
+ console.log(document);
+}
+console.log("ok");
diff --git a/cli/tests/testdata/run/with_config/server_side_work.ts b/cli/tests/testdata/run/with_config/server_side_work.ts
new file mode 100644
index 000000000..12db2ab05
--- /dev/null
+++ b/cli/tests/testdata/run/with_config/server_side_work.ts
@@ -0,0 +1,2 @@
+const _ = Deno.build.os;
+console.log("ok");