summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-02-01 03:16:52 +0100
committerGitHub <noreply@github.com>2024-02-01 02:16:52 +0000
commit830d096b66696ad9f4e67b3ed8460fb1ff7a9170 (patch)
treeefa513f071b65888f407fbe1f54fc4c2531c471b /cli/tests
parentfddbb018c1f2467eef49fdef46488337b869fc38 (diff)
fix(publish): rename --no-fast-check to --no-zap (#22214)
Also prints an information about the flag when there are `zap` errors.
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration/publish_tests.rs6
-rw-r--r--cli/tests/testdata/publish/invalid_fast_check.out4
-rw-r--r--cli/tests/testdata/publish/no_zap.out (renamed from cli/tests/testdata/publish/no_fast_check.out)0
3 files changed, 7 insertions, 3 deletions
diff --git a/cli/tests/integration/publish_tests.rs b/cli/tests/integration/publish_tests.rs
index 675ceced2..6b6fac70d 100644
--- a/cli/tests/integration/publish_tests.rs
+++ b/cli/tests/integration/publish_tests.rs
@@ -36,9 +36,9 @@ itest!(invalid_fast_check {
exit_code: 1,
});
-itest!(no_fast_check {
- args: "publish --no-fast-check --token 'sadfasdf'",
- output: "publish/no_fast_check.out",
+itest!(no_zap {
+ args: "publish --no-zap --token 'sadfasdf'",
+ output: "publish/no_zap.out",
cwd: Some("publish/invalid_fast_check"),
exit_code: 1,
});
diff --git a/cli/tests/testdata/publish/invalid_fast_check.out b/cli/tests/testdata/publish/invalid_fast_check.out
index f37638b9f..34b9b0314 100644
--- a/cli/tests/testdata/publish/invalid_fast_check.out
+++ b/cli/tests/testdata/publish/invalid_fast_check.out
@@ -9,4 +9,8 @@ error[zap-missing-explicit-return-type]: missing explicit return type in the pub
info: all functions in the public API must have an explicit return type
docs: https://jsr.io/go/zap-missing-explicit-return-type
+This package contains Zap errors. Although conforming to Zap will
+significantly improve the type checking performance of your library,
+you can choose to skip it by providing the --no-zap flag.
+
error: Found 1 problem
diff --git a/cli/tests/testdata/publish/no_fast_check.out b/cli/tests/testdata/publish/no_zap.out
index ac26c67c2..ac26c67c2 100644
--- a/cli/tests/testdata/publish/no_fast_check.out
+++ b/cli/tests/testdata/publish/no_zap.out