summaryrefslogtreecommitdiff
path: root/cli/tests/testdata
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2021-11-30 09:23:30 +1100
committerGitHub <noreply@github.com>2021-11-30 09:23:30 +1100
commit18a63dd977ade20e17d41c08acbefde6eada8572 (patch)
treeba233cf2c4d7be978008f736f25a677d1e9dae8a /cli/tests/testdata
parentf3b74350da69cb8cc0aedb1c1570abe2c64741ba (diff)
feat: add `--no-check=remote` flag (#12766)
Closes #11970
Diffstat (limited to 'cli/tests/testdata')
-rw-r--r--cli/tests/testdata/no_check_remote.ts3
-rw-r--r--cli/tests/testdata/no_check_remote.ts.disabled.out4
-rw-r--r--cli/tests/testdata/no_check_remote.ts.enabled.out1
-rw-r--r--cli/tests/testdata/subdir/type_error.ts1
4 files changed, 9 insertions, 0 deletions
diff --git a/cli/tests/testdata/no_check_remote.ts b/cli/tests/testdata/no_check_remote.ts
new file mode 100644
index 000000000..2ae8c2692
--- /dev/null
+++ b/cli/tests/testdata/no_check_remote.ts
@@ -0,0 +1,3 @@
+import * as a from "http://localhost:4545/subdir/type_error.ts";
+
+console.log(a.a);
diff --git a/cli/tests/testdata/no_check_remote.ts.disabled.out b/cli/tests/testdata/no_check_remote.ts.disabled.out
new file mode 100644
index 000000000..344264634
--- /dev/null
+++ b/cli/tests/testdata/no_check_remote.ts.disabled.out
@@ -0,0 +1,4 @@
+error: TS2322 [ERROR]: Type '12' is not assignable to type '"a"'.
+export const a: "a" = 12;
+ ^
+ at http://localhost:4545/subdir/type_error.ts:1:14
diff --git a/cli/tests/testdata/no_check_remote.ts.enabled.out b/cli/tests/testdata/no_check_remote.ts.enabled.out
new file mode 100644
index 000000000..48082f72f
--- /dev/null
+++ b/cli/tests/testdata/no_check_remote.ts.enabled.out
@@ -0,0 +1 @@
+12
diff --git a/cli/tests/testdata/subdir/type_error.ts b/cli/tests/testdata/subdir/type_error.ts
new file mode 100644
index 000000000..cc3c1d29d
--- /dev/null
+++ b/cli/tests/testdata/subdir/type_error.ts
@@ -0,0 +1 @@
+export const a: "a" = 12;