summaryrefslogtreecommitdiff
path: root/tests/testdata
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-03-04 11:10:39 -0500
committerGitHub <noreply@github.com>2024-03-04 16:10:39 +0000
commit66500199350fd9e7a32e6fc10855654ffac01c49 (patch)
tree91cdac72e3f7ffbadf1b2ab5f35d1e1149ddd196 /tests/testdata
parent625a9319f68148e24d64b15653c03c4d02b18405 (diff)
fix(lsp): ignore code errors when type passes for non-`@deno-types` reolution (#22682)
Diffstat (limited to 'tests/testdata')
-rw-r--r--tests/testdata/npm/registry/@denotest/monaco-editor/1.0.0/main.js4
-rw-r--r--tests/testdata/npm/registry/@denotest/monaco-editor/1.0.0/main.types.d.ts1
-rw-r--r--tests/testdata/npm/registry/@denotest/monaco-editor/1.0.0/package.json6
3 files changed, 11 insertions, 0 deletions
diff --git a/tests/testdata/npm/registry/@denotest/monaco-editor/1.0.0/main.js b/tests/testdata/npm/registry/@denotest/monaco-editor/1.0.0/main.js
new file mode 100644
index 000000000..403806c6b
--- /dev/null
+++ b/tests/testdata/npm/registry/@denotest/monaco-editor/1.0.0/main.js
@@ -0,0 +1,4 @@
+// The monaco-editor package uses an entry in the package.json
+// where it has no "type": "module" and then only specifies a
+// "module": "./main.js"-like entry that points at an ESM file.
+export class Editor {} \ No newline at end of file
diff --git a/tests/testdata/npm/registry/@denotest/monaco-editor/1.0.0/main.types.d.ts b/tests/testdata/npm/registry/@denotest/monaco-editor/1.0.0/main.types.d.ts
new file mode 100644
index 000000000..d978fa159
--- /dev/null
+++ b/tests/testdata/npm/registry/@denotest/monaco-editor/1.0.0/main.types.d.ts
@@ -0,0 +1 @@
+export class Editor {}
diff --git a/tests/testdata/npm/registry/@denotest/monaco-editor/1.0.0/package.json b/tests/testdata/npm/registry/@denotest/monaco-editor/1.0.0/package.json
new file mode 100644
index 000000000..eb0428b49
--- /dev/null
+++ b/tests/testdata/npm/registry/@denotest/monaco-editor/1.0.0/package.json
@@ -0,0 +1,6 @@
+{
+ "name": "@denotest/monaco-editor",
+ "version": "1.0.0",
+ "module": "./main.js",
+ "types": "./main.types.d.ts"
+}