summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
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