summaryrefslogtreecommitdiff
path: root/tests/testdata
diff options
context:
space:
mode:
authorMohammad Sulaiman <mohammad.sulaiman@exalt.ps>2024-09-05 11:09:09 +0300
committerGitHub <noreply@github.com>2024-09-05 08:09:09 +0000
commit49340b96f6b3603186e03f0102b99bc4a34a1b63 (patch)
tree24a1278efb472a52c58811a62ce9e38bcffc674b /tests/testdata
parentdfc5eec43c481b1eeaa0ad069aeba8b7559d4440 (diff)
chore: deprecate doc itests (#25452)
Diffstat (limited to 'tests/testdata')
-rw-r--r--tests/testdata/doc/060_deno_doc_displays_all_overloads_in_details_view.ts6
-rw-r--r--tests/testdata/doc/060_deno_doc_displays_all_overloads_in_details_view.ts.out9
-rw-r--r--tests/testdata/doc/deno_doc.ts3
-rw-r--r--tests/testdata/doc/deno_doc2.ts3
-rw-r--r--tests/testdata/doc/deno_doc_builtin.out3
-rw-r--r--tests/testdata/doc/import_map.json5
-rw-r--r--tests/testdata/doc/invalid_url.out4
-rw-r--r--tests/testdata/doc/lint_success.out1
-rw-r--r--tests/testdata/doc/lint_success.ts5
-rw-r--r--tests/testdata/doc/lint_success_html.out1
-rw-r--r--tests/testdata/doc/lint_success_json.out51
-rw-r--r--tests/testdata/doc/module/fun.js2
-rw-r--r--tests/testdata/doc/referenced_private_types.out12
-rw-r--r--tests/testdata/doc/referenced_private_types.ts7
-rw-r--r--tests/testdata/doc/referenced_private_types_fixed.out1
-rw-r--r--tests/testdata/doc/referenced_private_types_fixed.ts11
-rw-r--r--tests/testdata/doc/referenced_private_types_lint.out29
-rw-r--r--tests/testdata/doc/types_header.out6
-rw-r--r--tests/testdata/doc/types_header.ts1
-rw-r--r--tests/testdata/doc/types_hint.out5
-rw-r--r--tests/testdata/doc/types_hint.ts2
-rw-r--r--tests/testdata/doc/types_ref.js2
-rw-r--r--tests/testdata/doc/types_ref.out5
-rw-r--r--tests/testdata/doc/use_import_map.js1
-rw-r--r--tests/testdata/doc/use_import_map.out5
25 files changed, 0 insertions, 180 deletions
diff --git a/tests/testdata/doc/060_deno_doc_displays_all_overloads_in_details_view.ts b/tests/testdata/doc/060_deno_doc_displays_all_overloads_in_details_view.ts
deleted file mode 100644
index 854c1b464..000000000
--- a/tests/testdata/doc/060_deno_doc_displays_all_overloads_in_details_view.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-// deno-lint-ignore-file
-export namespace NS {
- export function test(name: string, fn: Function): void;
- export function test(options: object): void;
- export function test(name: string | object, fn?: Function): void {}
-}
diff --git a/tests/testdata/doc/060_deno_doc_displays_all_overloads_in_details_view.ts.out b/tests/testdata/doc/060_deno_doc_displays_all_overloads_in_details_view.ts.out
deleted file mode 100644
index 28d1cb921..000000000
--- a/tests/testdata/doc/060_deno_doc_displays_all_overloads_in_details_view.ts.out
+++ /dev/null
@@ -1,9 +0,0 @@
-Defined in [WILDCARD]/060_deno_doc_displays_all_overloads_in_details_view.ts:3:3
-
-function test(name: string, fn: Function): void
-
-Defined in [WILDCARD]/060_deno_doc_displays_all_overloads_in_details_view.ts:4:3
-
-function test(options: object): void
-
-
diff --git a/tests/testdata/doc/deno_doc.ts b/tests/testdata/doc/deno_doc.ts
deleted file mode 100644
index fb3c50957..000000000
--- a/tests/testdata/doc/deno_doc.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-/** Some JSDoc */
-export function foo() {
-}
diff --git a/tests/testdata/doc/deno_doc2.ts b/tests/testdata/doc/deno_doc2.ts
deleted file mode 100644
index ee6fc22dc..000000000
--- a/tests/testdata/doc/deno_doc2.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-/** Some JSDoc */
-export function bar() {
-}
diff --git a/tests/testdata/doc/deno_doc_builtin.out b/tests/testdata/doc/deno_doc_builtin.out
deleted file mode 100644
index b4a90d6bc..000000000
--- a/tests/testdata/doc/deno_doc_builtin.out
+++ /dev/null
@@ -1,3 +0,0 @@
-[WILDCARD]
-namespace Deno
-[WILDCARD] \ No newline at end of file
diff --git a/tests/testdata/doc/import_map.json b/tests/testdata/doc/import_map.json
deleted file mode 100644
index 244a30296..000000000
--- a/tests/testdata/doc/import_map.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "imports": {
- "rex/": "./module/"
- }
-}
diff --git a/tests/testdata/doc/invalid_url.out b/tests/testdata/doc/invalid_url.out
deleted file mode 100644
index 038c53177..000000000
--- a/tests/testdata/doc/invalid_url.out
+++ /dev/null
@@ -1,4 +0,0 @@
-error: Invalid URL 'https://raw.githubusercontent.com%2Fdyedgreen%2Fdeno-sqlite%2Frework_api%2Fmod.ts'
-
-Caused by:
- invalid domain character
diff --git a/tests/testdata/doc/lint_success.out b/tests/testdata/doc/lint_success.out
deleted file mode 100644
index c05ac45a1..000000000
--- a/tests/testdata/doc/lint_success.out
+++ /dev/null
@@ -1 +0,0 @@
-Checked 1 file
diff --git a/tests/testdata/doc/lint_success.ts b/tests/testdata/doc/lint_success.ts
deleted file mode 100644
index 42c44b2d7..000000000
--- a/tests/testdata/doc/lint_success.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-/** My test class. */
-export class Test {
- /** My property. */
- prop: string;
-}
diff --git a/tests/testdata/doc/lint_success_html.out b/tests/testdata/doc/lint_success_html.out
deleted file mode 100644
index 783dd5927..000000000
--- a/tests/testdata/doc/lint_success_html.out
+++ /dev/null
@@ -1 +0,0 @@
-Written 12 files to "./docs/"
diff --git a/tests/testdata/doc/lint_success_json.out b/tests/testdata/doc/lint_success_json.out
deleted file mode 100644
index 19f04c6a8..000000000
--- a/tests/testdata/doc/lint_success_json.out
+++ /dev/null
@@ -1,51 +0,0 @@
-[
- {
- "name": "Test",
- "isDefault": false,
- "location": {
- "filename": "file:///[WILDCARD]/lint_success.ts",
- "line": 2,
- "col": 0,
- "byteIndex": 22
- },
- "declarationKind": "export",
- "jsDoc": {
- "doc": "My test class."
- },
- "kind": "class",
- "classDef": {
- "isAbstract": false,
- "constructors": [],
- "properties": [
- {
- "jsDoc": {
- "doc": "My property."
- },
- "tsType": {
- "repr": "string",
- "kind": "keyword",
- "keyword": "string"
- },
- "readonly": false,
- "accessibility": null,
- "optional": false,
- "isAbstract": false,
- "isStatic": false,
- "name": "prop",
- "location": {
- "filename": "file:///[WILDCARD]/lint_success.ts",
- "line": 4,
- "col": 2,
- "byteIndex": 66
- }
- }
- ],
- "indexSignatures": [],
- "methods": [],
- "extends": null,
- "implements": [],
- "typeParams": [],
- "superTypeParams": []
- }
- }
-]
diff --git a/tests/testdata/doc/module/fun.js b/tests/testdata/doc/module/fun.js
deleted file mode 100644
index 28901d945..000000000
--- a/tests/testdata/doc/module/fun.js
+++ /dev/null
@@ -1,2 +0,0 @@
-/** This is some documentation */
-export function fun(_a, _b) {}
diff --git a/tests/testdata/doc/referenced_private_types.out b/tests/testdata/doc/referenced_private_types.out
deleted file mode 100644
index 3c91dbe15..000000000
--- a/tests/testdata/doc/referenced_private_types.out
+++ /dev/null
@@ -1,12 +0,0 @@
-Defined in file:///[WILDCARD]/doc/referenced_private_types.ts:5:1
-
-class MyClass
-
- prop: MyInterface
-
-Defined in file:///[WILDCARD]/doc/referenced_private_types.ts:1:1
-
-private interface MyInterface
-
- prop?: string
-
diff --git a/tests/testdata/doc/referenced_private_types.ts b/tests/testdata/doc/referenced_private_types.ts
deleted file mode 100644
index 9570d4625..000000000
--- a/tests/testdata/doc/referenced_private_types.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-interface MyInterface {
- prop?: string;
-}
-
-export class MyClass {
- prop: MyInterface = {};
-}
diff --git a/tests/testdata/doc/referenced_private_types_fixed.out b/tests/testdata/doc/referenced_private_types_fixed.out
deleted file mode 100644
index c05ac45a1..000000000
--- a/tests/testdata/doc/referenced_private_types_fixed.out
+++ /dev/null
@@ -1 +0,0 @@
-Checked 1 file
diff --git a/tests/testdata/doc/referenced_private_types_fixed.ts b/tests/testdata/doc/referenced_private_types_fixed.ts
deleted file mode 100644
index cd99bc76e..000000000
--- a/tests/testdata/doc/referenced_private_types_fixed.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-/** Doc comment */
-export interface MyInterface {
- /** Doc comment */
- prop?: string;
-}
-
-/** Doc comment */
-export class MyClass {
- /** Doc comment */
- prop: MyInterface = {};
-}
diff --git a/tests/testdata/doc/referenced_private_types_lint.out b/tests/testdata/doc/referenced_private_types_lint.out
deleted file mode 100644
index 1de3247bf..000000000
--- a/tests/testdata/doc/referenced_private_types_lint.out
+++ /dev/null
@@ -1,29 +0,0 @@
-error[missing-jsdoc]: exported symbol is missing JSDoc documentation
- --> [WILDCARD]:5:1
- |
-5 | export class MyClass {
- | ^
-
-
-error[private-type-ref]: public type 'MyClass.prototype.prop' references private type 'MyInterface'
- --> [WILDCARD]:6:3
- |
-6 | prop: MyInterface = {};
- | ^
- = hint: make the referenced type public or remove the reference
- |
-1 | interface MyInterface {
- | - this is the referenced type
- |
-
- info: to ensure documentation is complete all types that are exposed in the public API must be public
-
-
-error[missing-jsdoc]: exported symbol is missing JSDoc documentation
- --> [WILDCARD]:6:3
- |
-6 | prop: MyInterface = {};
- | ^
-
-
-error: Found 3 documentation lint errors.
diff --git a/tests/testdata/doc/types_header.out b/tests/testdata/doc/types_header.out
deleted file mode 100644
index a97b35dd7..000000000
--- a/tests/testdata/doc/types_header.out
+++ /dev/null
@@ -1,6 +0,0 @@
-Download http://127.0.0.1:4545/xTypeScriptTypes.js
-Download http://127.0.0.1:4545/xTypeScriptTypes.d.ts
-Defined in http://127.0.0.1:4545/xTypeScriptTypes.d.ts:1:14
-
-const foo: "foo"
-
diff --git a/tests/testdata/doc/types_header.ts b/tests/testdata/doc/types_header.ts
deleted file mode 100644
index b64c8d000..000000000
--- a/tests/testdata/doc/types_header.ts
+++ /dev/null
@@ -1 +0,0 @@
-export * from "http://127.0.0.1:4545/xTypeScriptTypes.js";
diff --git a/tests/testdata/doc/types_hint.out b/tests/testdata/doc/types_hint.out
deleted file mode 100644
index bfd5191a1..000000000
--- a/tests/testdata/doc/types_hint.out
+++ /dev/null
@@ -1,5 +0,0 @@
-Defined in [WILDCARD]/type_definitions/foo.d.ts:2:14
-
-const foo: string
- An exported value.
-
diff --git a/tests/testdata/doc/types_hint.ts b/tests/testdata/doc/types_hint.ts
deleted file mode 100644
index bacea46db..000000000
--- a/tests/testdata/doc/types_hint.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-// @deno-types="../type_definitions/foo.d.ts"
-export * from "../type_definitions/foo.js";
diff --git a/tests/testdata/doc/types_ref.js b/tests/testdata/doc/types_ref.js
deleted file mode 100644
index 03d8b5570..000000000
--- a/tests/testdata/doc/types_ref.js
+++ /dev/null
@@ -1,2 +0,0 @@
-/// <reference types="../type_definitions/foo.d.ts" />
-export const foo = "foo";
diff --git a/tests/testdata/doc/types_ref.out b/tests/testdata/doc/types_ref.out
deleted file mode 100644
index bfd5191a1..000000000
--- a/tests/testdata/doc/types_ref.out
+++ /dev/null
@@ -1,5 +0,0 @@
-Defined in [WILDCARD]/type_definitions/foo.d.ts:2:14
-
-const foo: string
- An exported value.
-
diff --git a/tests/testdata/doc/use_import_map.js b/tests/testdata/doc/use_import_map.js
deleted file mode 100644
index 672a7a7bd..000000000
--- a/tests/testdata/doc/use_import_map.js
+++ /dev/null
@@ -1 +0,0 @@
-export { fun } from "rex/fun.js";
diff --git a/tests/testdata/doc/use_import_map.out b/tests/testdata/doc/use_import_map.out
deleted file mode 100644
index 9509d5bfe..000000000
--- a/tests/testdata/doc/use_import_map.out
+++ /dev/null
@@ -1,5 +0,0 @@
-Defined in [WILDCARD]/doc/module/fun.js:2:1
-
-function fun(_a, _b): void
- This is some documentation
-