summaryrefslogtreecommitdiff
path: root/tests/testdata
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-03-07 13:59:57 +0000
committerGitHub <noreply@github.com>2024-03-07 14:59:57 +0100
commitf0ec4fe1b89215ce9e62ebf47d8907dd6336f35e (patch)
tree0e74627f21ebba6393f7f48b5618435af5cd94ad /tests/testdata
parent588dd5e66961999cfafd4504444e685629a92173 (diff)
fix(publish): silence warnings for sloppy imports and node builtins with env var (#22760)
An undocumented "DENO_DISABLE_PEDANTIC_NODE_WARNINGS" env var can be used to silence warnings for sloppy imports and node builtins without `node:` prefix.
Diffstat (limited to 'tests/testdata')
-rw-r--r--tests/testdata/publish/bare_node_builtins_no_warnings.out9
-rw-r--r--tests/testdata/publish/sloppy_imports_no_warnings.out8
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/testdata/publish/bare_node_builtins_no_warnings.out b/tests/testdata/publish/bare_node_builtins_no_warnings.out
new file mode 100644
index 000000000..c45c357ce
--- /dev/null
+++ b/tests/testdata/publish/bare_node_builtins_no_warnings.out
@@ -0,0 +1,9 @@
+Download http://localhost:4545/npm/registry/@types/node
+Download http://localhost:4545/npm/registry/@types/node/node-18.8.2.tgz
+Check file:///[WILDCARD]/publish/bare_node_builtins/mod.ts
+Checking for slow types in the public API...
+Check file:///[WILDCARD]/publish/bare_node_builtins/mod.ts
+Simulating publish of @foo/bar@1.0.0 with files:
+ file:///[WILDCARD]/publish/bare_node_builtins/deno.json (87B)
+ file:///[WILDCARD]/publish/bare_node_builtins/mod.ts (121B)
+Warning Aborting due to --dry-run
diff --git a/tests/testdata/publish/sloppy_imports_no_warnings.out b/tests/testdata/publish/sloppy_imports_no_warnings.out
new file mode 100644
index 000000000..8659010b7
--- /dev/null
+++ b/tests/testdata/publish/sloppy_imports_no_warnings.out
@@ -0,0 +1,8 @@
+Check file:///[WILDCARD]/publish/sloppy_imports/mod.ts
+Checking for slow types in the public API...
+Check file:///[WILDCARD]/publish/sloppy_imports/mod.ts
+Simulating publish of @foo/bar@1.0.0 with files:
+ file:///[WILDCARD]/publish/sloppy_imports/b/index.ts (27B)
+ file:///[WILDCARD]/publish/sloppy_imports/deno.json (87B)
+ file:///[WILDCARD]/publish/sloppy_imports/mod.ts (35B)
+Warning Aborting due to --dry-run