summaryrefslogtreecommitdiff
path: root/tests/testdata
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-02-21 14:12:36 -0500
committerGitHub <noreply@github.com>2024-02-21 14:12:36 -0500
commita2c1cc5a1a8513b9f6434de2764602ae97e6d8b3 (patch)
treee0ca38197835482660c169674125a3e6ba2c954d /tests/testdata
parent8aa529f1b8934fc8aefdfd721e363b71a7c9c269 (diff)
fix(publish): better no-slow-types type discovery (#22517)
Diffstat (limited to 'tests/testdata')
-rw-r--r--tests/testdata/jsr/registry/@denotest/module_graph/1.4.0_meta.json1
-rw-r--r--tests/testdata/publish/unanalyzable_dynamic_import.out4
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/testdata/jsr/registry/@denotest/module_graph/1.4.0_meta.json b/tests/testdata/jsr/registry/@denotest/module_graph/1.4.0_meta.json
index ff105b58a..6cd99b42b 100644
--- a/tests/testdata/jsr/registry/@denotest/module_graph/1.4.0_meta.json
+++ b/tests/testdata/jsr/registry/@denotest/module_graph/1.4.0_meta.json
@@ -8,7 +8,6 @@
"dependencies": [{
"kind": "import",
"type": "static",
- "range": [[0, 0], [0, 35]],
"specifier": "./other.ts",
"specifierRange": [[0, 22], [0, 34]]
}]
diff --git a/tests/testdata/publish/unanalyzable_dynamic_import.out b/tests/testdata/publish/unanalyzable_dynamic_import.out
index a68b29932..da6a6f902 100644
--- a/tests/testdata/publish/unanalyzable_dynamic_import.out
+++ b/tests/testdata/publish/unanalyzable_dynamic_import.out
@@ -2,10 +2,10 @@ Check file://[WILDCARD]/mod.ts
Checking for slow types in the public API...
Check file://[WILDCARD]/mod.ts
warning[unanalyzable-dynamic-import]: unable to analyze dynamic import
- --> [WILDCARD]mod.ts:2:7
+ --> [WILDCARD]mod.ts:2:14
|
2 | await import("asd " + asd);
- | ^^^^^^^^^^^^^^^^^^^^ the unanalyzable dynamic import
+ | ^^^^^^^^^^^^ the unanalyzable dynamic import
info: after publishing this package, imports from the local import map do not work
info: dynamic imports that can not be analyzed at publish time will not be rewritten automatically