summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-01-31 16:10:31 +0100
committerGitHub <noreply@github.com>2024-01-31 16:10:31 +0100
commit560390c93cd56e5156ba6f8e66057181c1f5833f (patch)
treeacf62db9ef15d3dda2db8383dde177e8f02ccc16 /cli/tests
parent81042fb875fc018ebda2044b61dfdc4fd1660f7a (diff)
chore(publish): add --no-fast-check flag (#22203)
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration/publish_tests.rs7
-rw-r--r--cli/tests/testdata/publish/no_fast_check.out4
2 files changed, 11 insertions, 0 deletions
diff --git a/cli/tests/integration/publish_tests.rs b/cli/tests/integration/publish_tests.rs
index 59486602d..675ceced2 100644
--- a/cli/tests/integration/publish_tests.rs
+++ b/cli/tests/integration/publish_tests.rs
@@ -36,6 +36,13 @@ itest!(invalid_fast_check {
exit_code: 1,
});
+itest!(no_fast_check {
+ args: "publish --no-fast-check --token 'sadfasdf'",
+ output: "publish/no_fast_check.out",
+ cwd: Some("publish/invalid_fast_check"),
+ exit_code: 1,
+});
+
itest!(invalid_path {
args: "publish --token 'sadfasdf'",
output: "publish/invalid_path.out",
diff --git a/cli/tests/testdata/publish/no_fast_check.out b/cli/tests/testdata/publish/no_fast_check.out
new file mode 100644
index 000000000..ac26c67c2
--- /dev/null
+++ b/cli/tests/testdata/publish/no_fast_check.out
@@ -0,0 +1,4 @@
+Ensuring type checks...
+Check file:///[WILDCARD]/mod.ts
+error: Following packages don't exist, follow the links and create them:
+ - https://jsr.io/new?scope=foo&package=bar&from=cli