summaryrefslogtreecommitdiff
path: root/tests/testdata/lint
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-04-29 10:08:27 -0400
committerGitHub <noreply@github.com>2024-04-29 10:08:27 -0400
commitda52058a945999d486b07700d2834f027a65947c (patch)
treeb6031c274cbc36dcefc6d681473e366cdb208c89 /tests/testdata/lint
parentb02ffec37c73be8a73b95b33b32efa693e84e01b (diff)
chore: migrate bench, publish, and more itests to spec tests (#23584)
Diffstat (limited to 'tests/testdata/lint')
-rw-r--r--tests/testdata/lint/no_slow_types/a.ts3
-rw-r--r--tests/testdata/lint/no_slow_types/b.ts5
-rw-r--r--tests/testdata/lint/no_slow_types/c.ts4
-rw-r--r--tests/testdata/lint/no_slow_types/d.ts4
-rw-r--r--tests/testdata/lint/no_slow_types/deno.json8
-rw-r--r--tests/testdata/lint/no_slow_types/deno.non-package.json2
-rw-r--r--tests/testdata/lint/no_slow_types/no_slow_types.out35
-rw-r--r--tests/testdata/lint/no_slow_types/no_slow_types_entrypoint.out35
-rw-r--r--tests/testdata/lint/no_slow_types_workspace/a/b.ts5
-rw-r--r--tests/testdata/lint/no_slow_types_workspace/a/d.ts4
-rw-r--r--tests/testdata/lint/no_slow_types_workspace/a/deno.json8
-rw-r--r--tests/testdata/lint/no_slow_types_workspace/a/mod.ts3
-rw-r--r--tests/testdata/lint/no_slow_types_workspace/b/deno.json5
-rw-r--r--tests/testdata/lint/no_slow_types_workspace/b/mod.ts4
-rw-r--r--tests/testdata/lint/no_slow_types_workspace/c/deno.json5
-rw-r--r--tests/testdata/lint/no_slow_types_workspace/c/mod_c.ts4
-rw-r--r--tests/testdata/lint/no_slow_types_workspace/deno.json7
-rw-r--r--tests/testdata/lint/no_slow_types_workspace/output.out46
18 files changed, 0 insertions, 187 deletions
diff --git a/tests/testdata/lint/no_slow_types/a.ts b/tests/testdata/lint/no_slow_types/a.ts
deleted file mode 100644
index 3b399665d..000000000
--- a/tests/testdata/lint/no_slow_types/a.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export function add(a: number, b: number) {
- return a + b;
-}
diff --git a/tests/testdata/lint/no_slow_types/b.ts b/tests/testdata/lint/no_slow_types/b.ts
deleted file mode 100644
index b96a79489..000000000
--- a/tests/testdata/lint/no_slow_types/b.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-export function addB(a: number, b: number) {
- return a + b;
-}
-
-export * from "./d.ts";
diff --git a/tests/testdata/lint/no_slow_types/c.ts b/tests/testdata/lint/no_slow_types/c.ts
deleted file mode 100644
index 517aa3d21..000000000
--- a/tests/testdata/lint/no_slow_types/c.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-// this one won't error because it's not an export
-export function addC(a: number, b: number) {
- return a + b;
-}
diff --git a/tests/testdata/lint/no_slow_types/d.ts b/tests/testdata/lint/no_slow_types/d.ts
deleted file mode 100644
index babe9d81b..000000000
--- a/tests/testdata/lint/no_slow_types/d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-// this one is re-exported via b.ts
-export function addD(a: number, b: number) {
- return a + b;
-}
diff --git a/tests/testdata/lint/no_slow_types/deno.json b/tests/testdata/lint/no_slow_types/deno.json
deleted file mode 100644
index 2fd0af5f0..000000000
--- a/tests/testdata/lint/no_slow_types/deno.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "name": "@pkg/pkg",
- "version": "1.0.0",
- "exports": {
- "./a": "./a.ts",
- "./b": "./b.ts"
- }
-}
diff --git a/tests/testdata/lint/no_slow_types/deno.non-package.json b/tests/testdata/lint/no_slow_types/deno.non-package.json
deleted file mode 100644
index 2c63c0851..000000000
--- a/tests/testdata/lint/no_slow_types/deno.non-package.json
+++ /dev/null
@@ -1,2 +0,0 @@
-{
-}
diff --git a/tests/testdata/lint/no_slow_types/no_slow_types.out b/tests/testdata/lint/no_slow_types/no_slow_types.out
deleted file mode 100644
index 5828906e7..000000000
--- a/tests/testdata/lint/no_slow_types/no_slow_types.out
+++ /dev/null
@@ -1,35 +0,0 @@
-error[no-slow-types]: missing explicit return type in the public API
- --> [WILDCARD]a.ts:1:17
- |
-1 | export function add(a: number, b: number) {
- | ^^^ this function is missing an explicit return type
- = hint: add an explicit return type to the function
-
- info: all functions in the public API must have an explicit return type
- docs: https://jsr.io/go/slow-type-missing-explicit-return-type
-
-
-error[no-slow-types]: missing explicit return type in the public API
- --> [WILDCARD]b.ts:1:17
- |
-1 | export function addB(a: number, b: number) {
- | ^^^^ this function is missing an explicit return type
- = hint: add an explicit return type to the function
-
- info: all functions in the public API must have an explicit return type
- docs: https://jsr.io/go/slow-type-missing-explicit-return-type
-
-
-error[no-slow-types]: missing explicit return type in the public API
- --> [WILDCARD]d.ts:2:17
- |
-2 | export function addD(a: number, b: number) {
- | ^^^^ this function is missing an explicit return type
- = hint: add an explicit return type to the function
-
- info: all functions in the public API must have an explicit return type
- docs: https://jsr.io/go/slow-type-missing-explicit-return-type
-
-
-Found 3 problems
-Checked 4 files
diff --git a/tests/testdata/lint/no_slow_types/no_slow_types_entrypoint.out b/tests/testdata/lint/no_slow_types/no_slow_types_entrypoint.out
deleted file mode 100644
index b8c1013bf..000000000
--- a/tests/testdata/lint/no_slow_types/no_slow_types_entrypoint.out
+++ /dev/null
@@ -1,35 +0,0 @@
-error[no-slow-types]: missing explicit return type in the public API
- --> [WILDCARD]a.ts:1:17
- |
-1 | export function add(a: number, b: number) {
- | ^^^ this function is missing an explicit return type
- = hint: add an explicit return type to the function
-
- info: all functions in the public API must have an explicit return type
- docs: https://jsr.io/go/slow-type-missing-explicit-return-type
-
-
-error[no-slow-types]: missing explicit return type in the public API
- --> [WILDCARD]b.ts:1:17
- |
-1 | export function addB(a: number, b: number) {
- | ^^^^ this function is missing an explicit return type
- = hint: add an explicit return type to the function
-
- info: all functions in the public API must have an explicit return type
- docs: https://jsr.io/go/slow-type-missing-explicit-return-type
-
-
-error[no-slow-types]: missing explicit return type in the public API
- --> [WILDCARD]d.ts:2:17
- |
-2 | export function addD(a: number, b: number) {
- | ^^^^ this function is missing an explicit return type
- = hint: add an explicit return type to the function
-
- info: all functions in the public API must have an explicit return type
- docs: https://jsr.io/go/slow-type-missing-explicit-return-type
-
-
-Found 3 problems
-Checked 1 file
diff --git a/tests/testdata/lint/no_slow_types_workspace/a/b.ts b/tests/testdata/lint/no_slow_types_workspace/a/b.ts
deleted file mode 100644
index b96a79489..000000000
--- a/tests/testdata/lint/no_slow_types_workspace/a/b.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-export function addB(a: number, b: number) {
- return a + b;
-}
-
-export * from "./d.ts";
diff --git a/tests/testdata/lint/no_slow_types_workspace/a/d.ts b/tests/testdata/lint/no_slow_types_workspace/a/d.ts
deleted file mode 100644
index babe9d81b..000000000
--- a/tests/testdata/lint/no_slow_types_workspace/a/d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-// this one is re-exported via b.ts
-export function addD(a: number, b: number) {
- return a + b;
-}
diff --git a/tests/testdata/lint/no_slow_types_workspace/a/deno.json b/tests/testdata/lint/no_slow_types_workspace/a/deno.json
deleted file mode 100644
index 5a971cd85..000000000
--- a/tests/testdata/lint/no_slow_types_workspace/a/deno.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "name": "@pkg/a",
- "version": "1.0.0",
- "exports": {
- "./a": "./mod.ts",
- "./b": "./b.ts"
- }
-}
diff --git a/tests/testdata/lint/no_slow_types_workspace/a/mod.ts b/tests/testdata/lint/no_slow_types_workspace/a/mod.ts
deleted file mode 100644
index 3b399665d..000000000
--- a/tests/testdata/lint/no_slow_types_workspace/a/mod.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-export function add(a: number, b: number) {
- return a + b;
-}
diff --git a/tests/testdata/lint/no_slow_types_workspace/b/deno.json b/tests/testdata/lint/no_slow_types_workspace/b/deno.json
deleted file mode 100644
index c95aeb029..000000000
--- a/tests/testdata/lint/no_slow_types_workspace/b/deno.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "name": "@pkg/b",
- "version": "1.0.0",
- "exports": "./mod.ts"
-}
diff --git a/tests/testdata/lint/no_slow_types_workspace/b/mod.ts b/tests/testdata/lint/no_slow_types_workspace/b/mod.ts
deleted file mode 100644
index fa1c068de..000000000
--- a/tests/testdata/lint/no_slow_types_workspace/b/mod.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-// ok
-export function addB(a: number, b: number): number {
- return a + b;
-}
diff --git a/tests/testdata/lint/no_slow_types_workspace/c/deno.json b/tests/testdata/lint/no_slow_types_workspace/c/deno.json
deleted file mode 100644
index 36d6e2e67..000000000
--- a/tests/testdata/lint/no_slow_types_workspace/c/deno.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "name": "@pkg/c",
- "version": "1.0.0",
- "exports": "./mod_c.ts"
-}
diff --git a/tests/testdata/lint/no_slow_types_workspace/c/mod_c.ts b/tests/testdata/lint/no_slow_types_workspace/c/mod_c.ts
deleted file mode 100644
index 632a90b65..000000000
--- a/tests/testdata/lint/no_slow_types_workspace/c/mod_c.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-// not ok
-export function addC(a: number, b: number) {
- return a + b;
-}
diff --git a/tests/testdata/lint/no_slow_types_workspace/deno.json b/tests/testdata/lint/no_slow_types_workspace/deno.json
deleted file mode 100644
index e3dd981e5..000000000
--- a/tests/testdata/lint/no_slow_types_workspace/deno.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "workspaces": [
- "./a",
- "./b",
- "./c"
- ]
-}
diff --git a/tests/testdata/lint/no_slow_types_workspace/output.out b/tests/testdata/lint/no_slow_types_workspace/output.out
deleted file mode 100644
index 05f54099b..000000000
--- a/tests/testdata/lint/no_slow_types_workspace/output.out
+++ /dev/null
@@ -1,46 +0,0 @@
-error[no-slow-types]: missing explicit return type in the public API
- --> [WILDCARD]b.ts:1:17
- |
-1 | export function addB(a: number, b: number) {
- | ^^^^ this function is missing an explicit return type
- = hint: add an explicit return type to the function
-
- info: all functions in the public API must have an explicit return type
- docs: https://jsr.io/go/slow-type-missing-explicit-return-type
-
-
-error[no-slow-types]: missing explicit return type in the public API
- --> [WILDCARD]d.ts:2:17
- |
-2 | export function addD(a: number, b: number) {
- | ^^^^ this function is missing an explicit return type
- = hint: add an explicit return type to the function
-
- info: all functions in the public API must have an explicit return type
- docs: https://jsr.io/go/slow-type-missing-explicit-return-type
-
-
-error[no-slow-types]: missing explicit return type in the public API
- --> [WILDCARD]mod.ts:1:17
- |
-1 | export function add(a: number, b: number) {
- | ^^^ this function is missing an explicit return type
- = hint: add an explicit return type to the function
-
- info: all functions in the public API must have an explicit return type
- docs: https://jsr.io/go/slow-type-missing-explicit-return-type
-
-
-error[no-slow-types]: missing explicit return type in the public API
- --> [WILDCARD]mod_c.ts:2:17
- |
-2 | export function addC(a: number, b: number) {
- | ^^^^ this function is missing an explicit return type
- = hint: add an explicit return type to the function
-
- info: all functions in the public API must have an explicit return type
- docs: https://jsr.io/go/slow-type-missing-explicit-return-type
-
-
-Found 4 problems
-Checked 5 files