summaryrefslogtreecommitdiff
path: root/cli/tests/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata')
-rw-r--r--cli/tests/testdata/doc/referenced_private_types_fixed.out16
-rw-r--r--cli/tests/testdata/doc/referenced_private_types_fixed.ts11
-rw-r--r--cli/tests/testdata/doc/referenced_private_types_lint.out10
3 files changed, 37 insertions, 0 deletions
diff --git a/cli/tests/testdata/doc/referenced_private_types_fixed.out b/cli/tests/testdata/doc/referenced_private_types_fixed.out
new file mode 100644
index 000000000..4621c6371
--- /dev/null
+++ b/cli/tests/testdata/doc/referenced_private_types_fixed.out
@@ -0,0 +1,16 @@
+Defined in file:///[WILDCARD]/referenced_private_types_fixed.ts:8:1
+
+class MyClass
+ Doc comment
+
+ prop: MyInterface
+ Doc comment
+
+Defined in file:///[WILDCARD]/referenced_private_types_fixed.ts:2:1
+
+interface MyInterface
+ Doc comment
+
+ prop?: string
+ Doc comment
+
diff --git a/cli/tests/testdata/doc/referenced_private_types_fixed.ts b/cli/tests/testdata/doc/referenced_private_types_fixed.ts
new file mode 100644
index 000000000..cd99bc76e
--- /dev/null
+++ b/cli/tests/testdata/doc/referenced_private_types_fixed.ts
@@ -0,0 +1,11 @@
+/** Doc comment */
+export interface MyInterface {
+ /** Doc comment */
+ prop?: string;
+}
+
+/** Doc comment */
+export class MyClass {
+ /** Doc comment */
+ prop: MyInterface = {};
+}
diff --git a/cli/tests/testdata/doc/referenced_private_types_lint.out b/cli/tests/testdata/doc/referenced_private_types_lint.out
new file mode 100644
index 000000000..bb8c599f4
--- /dev/null
+++ b/cli/tests/testdata/doc/referenced_private_types_lint.out
@@ -0,0 +1,10 @@
+Type is not exported, but referenced by an exported type.
+ at file:///[WILDCARD]/referenced_private_types.ts:1:1
+
+Missing JS documentation comment.
+ at file:///[WILDCARD]/referenced_private_types.ts:5:1
+
+Missing JS documentation comment.
+ at file:///[WILDCARD]/referenced_private_types.ts:6:3
+
+error: Found 3 documentation diagnostics.