summaryrefslogtreecommitdiff
path: root/cli/tests/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata')
-rw-r--r--cli/tests/testdata/check/no_error_truncation/deno.json5
-rw-r--r--cli/tests/testdata/check/no_error_truncation/main.out11
-rw-r--r--cli/tests/testdata/check/no_error_truncation/main.ts12
3 files changed, 28 insertions, 0 deletions
diff --git a/cli/tests/testdata/check/no_error_truncation/deno.json b/cli/tests/testdata/check/no_error_truncation/deno.json
new file mode 100644
index 000000000..643707ccc
--- /dev/null
+++ b/cli/tests/testdata/check/no_error_truncation/deno.json
@@ -0,0 +1,5 @@
+{
+ "compilerOptions": {
+ "noErrorTruncation": true
+ }
+}
diff --git a/cli/tests/testdata/check/no_error_truncation/main.out b/cli/tests/testdata/check/no_error_truncation/main.out
new file mode 100644
index 000000000..13fd5aae4
--- /dev/null
+++ b/cli/tests/testdata/check/no_error_truncation/main.out
@@ -0,0 +1,11 @@
+error: TS2322 [ERROR]: Type '{ propertyWithAnExceedinglyLongName1: string; propertyWithAnExceedinglyLongName2: string; propertyWithAnExceedinglyLongName3: string; propertyWithAnExceedinglyLongName4: string; propertyWithAnExceedinglyLongName5: string; propertyWithAnExceedinglyLongName6: string; propertyWithAnExceedinglyLongName7: string; propertyWithAnExceedinglyLongName8: string; }' is not assignable to type 'string'.
+const _s: string = x;
+ ~~
+ at file:///[WILDCARD]/no_error_truncation/main.ts:12:7
+
+TS2454 [ERROR]: Variable 'x' is used before being assigned.
+const _s: string = x;
+ ^
+ at file:///[WILDCARD]/no_error_truncation/main.ts:12:20
+
+Found 2 errors.
diff --git a/cli/tests/testdata/check/no_error_truncation/main.ts b/cli/tests/testdata/check/no_error_truncation/main.ts
new file mode 100644
index 000000000..bb1856602
--- /dev/null
+++ b/cli/tests/testdata/check/no_error_truncation/main.ts
@@ -0,0 +1,12 @@
+let x: {
+ propertyWithAnExceedinglyLongName1: string;
+ propertyWithAnExceedinglyLongName2: string;
+ propertyWithAnExceedinglyLongName3: string;
+ propertyWithAnExceedinglyLongName4: string;
+ propertyWithAnExceedinglyLongName5: string;
+ propertyWithAnExceedinglyLongName6: string;
+ propertyWithAnExceedinglyLongName7: string;
+ propertyWithAnExceedinglyLongName8: string;
+};
+
+const _s: string = x;