summaryrefslogtreecommitdiff
path: root/tests/specs/lint
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-06-05 11:04:16 -0400
committerGitHub <noreply@github.com>2024-06-05 17:04:16 +0200
commit7ed90a20d04982ae15a52ae2378cbffd4b6839df (patch)
tree3297d6f7227fbf1cf80e17a2a376ef4dfa52e6ad /tests/specs/lint
parent0544d60012006b1c7799d8b6eafacec9567901ad (diff)
fix: better handling of npm resolution occurring on workers (#24094)
Closes https://github.com/denoland/deno/issues/24063
Diffstat (limited to 'tests/specs/lint')
-rw-r--r--tests/specs/lint/no_slow_types/no_slow_types.out3
-rw-r--r--tests/specs/lint/no_slow_types/no_slow_types_entrypoint.out3
-rw-r--r--tests/specs/lint/no_slow_types_entrypoint/no_slow_types_entrypoint.out3
-rw-r--r--tests/specs/lint/no_slow_types_workspace/output.out4
4 files changed, 13 insertions, 0 deletions
diff --git a/tests/specs/lint/no_slow_types/no_slow_types.out b/tests/specs/lint/no_slow_types/no_slow_types.out
index 5828906e7..1093d032c 100644
--- a/tests/specs/lint/no_slow_types/no_slow_types.out
+++ b/tests/specs/lint/no_slow_types/no_slow_types.out
@@ -3,6 +3,7 @@ error[no-slow-types]: missing explicit return type in the public API
|
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
@@ -14,6 +15,7 @@ error[no-slow-types]: missing explicit return type in the public API
|
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
@@ -25,6 +27,7 @@ error[no-slow-types]: missing explicit return type in the public API
|
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
diff --git a/tests/specs/lint/no_slow_types/no_slow_types_entrypoint.out b/tests/specs/lint/no_slow_types/no_slow_types_entrypoint.out
index b8c1013bf..895dcb6cd 100644
--- a/tests/specs/lint/no_slow_types/no_slow_types_entrypoint.out
+++ b/tests/specs/lint/no_slow_types/no_slow_types_entrypoint.out
@@ -3,6 +3,7 @@ error[no-slow-types]: missing explicit return type in the public API
|
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
@@ -14,6 +15,7 @@ error[no-slow-types]: missing explicit return type in the public API
|
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
@@ -25,6 +27,7 @@ error[no-slow-types]: missing explicit return type in the public API
|
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
diff --git a/tests/specs/lint/no_slow_types_entrypoint/no_slow_types_entrypoint.out b/tests/specs/lint/no_slow_types_entrypoint/no_slow_types_entrypoint.out
index b8c1013bf..895dcb6cd 100644
--- a/tests/specs/lint/no_slow_types_entrypoint/no_slow_types_entrypoint.out
+++ b/tests/specs/lint/no_slow_types_entrypoint/no_slow_types_entrypoint.out
@@ -3,6 +3,7 @@ error[no-slow-types]: missing explicit return type in the public API
|
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
@@ -14,6 +15,7 @@ error[no-slow-types]: missing explicit return type in the public API
|
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
@@ -25,6 +27,7 @@ error[no-slow-types]: missing explicit return type in the public API
|
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
diff --git a/tests/specs/lint/no_slow_types_workspace/output.out b/tests/specs/lint/no_slow_types_workspace/output.out
index 05f54099b..1f19fbab8 100644
--- a/tests/specs/lint/no_slow_types_workspace/output.out
+++ b/tests/specs/lint/no_slow_types_workspace/output.out
@@ -3,6 +3,7 @@ error[no-slow-types]: missing explicit return type in the public API
|
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
@@ -14,6 +15,7 @@ error[no-slow-types]: missing explicit return type in the public API
|
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
@@ -25,6 +27,7 @@ error[no-slow-types]: missing explicit return type in the public API
|
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
@@ -36,6 +39,7 @@ error[no-slow-types]: missing explicit return type in the public API
|
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