summaryrefslogtreecommitdiff
path: root/tests/specs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs')
-rw-r--r--tests/specs/publish/workspace/LICENSE (renamed from tests/specs/publish/workspace/foo/LICENSE)0
-rw-r--r--tests/specs/publish/workspace/__test__.jsonc9
-rw-r--r--tests/specs/publish/workspace/foo_dry_run.out9
-rw-r--r--tests/specs/publish/workspace/workspace_dry_run.out17
4 files changed, 35 insertions, 0 deletions
diff --git a/tests/specs/publish/workspace/foo/LICENSE b/tests/specs/publish/workspace/LICENSE
index e69de29bb..e69de29bb 100644
--- a/tests/specs/publish/workspace/foo/LICENSE
+++ b/tests/specs/publish/workspace/LICENSE
diff --git a/tests/specs/publish/workspace/__test__.jsonc b/tests/specs/publish/workspace/__test__.jsonc
index 706b08ccd..0ac5c2718 100644
--- a/tests/specs/publish/workspace/__test__.jsonc
+++ b/tests/specs/publish/workspace/__test__.jsonc
@@ -4,6 +4,15 @@
"args": "publish --token 'sadfasdf'",
"output": "workspace.out"
},
+ "workspace_dry_run": {
+ "args": "publish --token 'sadfasdf' --dry-run",
+ "output": "workspace_dry_run.out"
+ },
+ "individual_dry_run": {
+ "cwd": "./foo",
+ "args": "publish --token 'sadfasdf' --dry-run",
+ "output": "foo_dry_run.out"
+ },
"individual": {
"cwd": "./bar",
"args": "publish --token 'sadfasdf'",
diff --git a/tests/specs/publish/workspace/foo_dry_run.out b/tests/specs/publish/workspace/foo_dry_run.out
new file mode 100644
index 000000000..20759c180
--- /dev/null
+++ b/tests/specs/publish/workspace/foo_dry_run.out
@@ -0,0 +1,9 @@
+Check file:///[WILDLINE]/foo/mod.ts
+Checking for slow types in the public API...
+Check file:///[WILDLINE]/foo/mod.ts
+Simulating publish of @foo/foo@1.0.0 with files:
+[# notice how this line is including the LICENSE from the root directory]
+ file:///[WILDLINE]/workspace/LICENSE (0B)
+ file:///[WILDLINE]/workspace/foo/deno.json (135B)
+ file:///[WILDLINE]/workspace/foo/mod.ts (118B)
+Warning Aborting due to --dry-run
diff --git a/tests/specs/publish/workspace/workspace_dry_run.out b/tests/specs/publish/workspace/workspace_dry_run.out
new file mode 100644
index 000000000..dd8eff0ff
--- /dev/null
+++ b/tests/specs/publish/workspace/workspace_dry_run.out
@@ -0,0 +1,17 @@
+Publishing a workspace...
+Check file:///[WILDLINE]/workspace/bar/mod.ts
+Check file:///[WILDLINE]/workspace/foo/mod.ts
+Checking for slow types in the public API...
+Check file:///[WILDLINE]/workspace/bar/mod.ts
+Check file:///[WILDLINE]/workspace/foo/mod.ts
+[UNORDERED_START]
+Simulating publish of @foo/foo@1.0.0 with files:
+ file:///[WILDLINE]/workspace/LICENSE (0B)
+ file:///[WILDLINE]/workspace/foo/deno.json (135B)
+ file:///[WILDLINE]/workspace/foo/mod.ts (118B)
+Simulating publish of @foo/bar@1.0.0 with files:
+ file:///[WILDLINE]/workspace/bar/LICENSE (0B)
+ file:///[WILDLINE]/workspace/bar/deno.json (87B)
+ file:///[WILDLINE]/workspace/bar/mod.ts (70B)
+[UNORDERED_END]
+Warning Aborting due to --dry-run