summaryrefslogtreecommitdiff
path: root/tests/integration/publish_tests.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-02-19 10:28:41 -0500
committerGitHub <noreply@github.com>2024-02-19 15:28:41 +0000
commit66424032a2c78c6010c0a1a1b22a26d081166660 (patch)
tree610e95beba5685ef1ba322375bf31a3fd6c5a187 /tests/integration/publish_tests.rs
parent2b279ad630651e973d5a31586f58809f005bc925 (diff)
feat(unstable/lint): no-slow-types for JSR packages (#22430)
1. Renames zap/fast-check to instead be a `no-slow-types` lint rule. 1. This lint rule is automatically run when doing `deno lint` for packages (deno.json files with a name, version, and exports field) 1. This lint rules still occurs on publish. It can be skipped by running with `--no-slow-types`
Diffstat (limited to 'tests/integration/publish_tests.rs')
-rw-r--r--tests/integration/publish_tests.rs16
1 files changed, 9 insertions, 7 deletions
diff --git a/tests/integration/publish_tests.rs b/tests/integration/publish_tests.rs
index b614005cc..48e62e905 100644
--- a/tests/integration/publish_tests.rs
+++ b/tests/integration/publish_tests.rs
@@ -22,17 +22,17 @@ itest!(missing_deno_json {
exit_code: 1,
});
-itest!(invalid_fast_check {
+itest!(has_slow_types {
args: "publish --token 'sadfasdf'",
- output: "publish/invalid_fast_check.out",
- cwd: Some("publish/invalid_fast_check"),
+ output: "publish/has_slow_types.out",
+ cwd: Some("publish/has_slow_types"),
exit_code: 1,
});
-itest!(no_zap {
- args: "publish --no-zap --token 'sadfasdf'",
- output: "publish/no_zap.out",
- cwd: Some("publish/invalid_fast_check"),
+itest!(allow_slow_types {
+ args: "publish --allow-slow-types --token 'sadfasdf'",
+ output: "publish/allow_slow_types.out",
+ cwd: Some("publish/has_slow_types"),
envs: env_vars_for_jsr_tests(),
http_server: true,
exit_code: 0,
@@ -83,7 +83,9 @@ fn publish_non_exported_files_using_import_map() {
.new_command()
.args("publish --log-level=debug --token 'sadfasdf'")
.run();
+ output.assert_exit_code(0);
let lines = output.combined_output().split('\n').collect::<Vec<_>>();
+ eprintln!("{}", output.combined_output());
assert!(lines
.iter()
.any(|l| l.contains("Unfurling") && l.ends_with("mod.ts")));