diff options
Diffstat (limited to 'tests/specs/publish/symlink')
-rw-r--r-- | tests/specs/publish/symlink/__test__.jsonc | 15 | ||||
-rw-r--r-- | tests/specs/publish/symlink/deno.json | 7 | ||||
-rw-r--r-- | tests/specs/publish/symlink/mod.ts | 3 | ||||
-rw-r--r-- | tests/specs/publish/symlink/symlink.out | 15 |
4 files changed, 40 insertions, 0 deletions
diff --git a/tests/specs/publish/symlink/__test__.jsonc b/tests/specs/publish/symlink/__test__.jsonc new file mode 100644 index 000000000..32da3baff --- /dev/null +++ b/tests/specs/publish/symlink/__test__.jsonc @@ -0,0 +1,15 @@ +{ + "tempDir": true, + "envs": { + "DISABLE_JSR_PROVENANCE": "true", + "DENO_TESTING_DISABLE_GIT_CHECK": "1" + }, + "steps": [{ + "args": ["eval", "Deno.symlinkSync('./mod.ts', './symlink');"], + "output": "[WILDCARD]" + }, { + "args": "publish --token 'sadfasdf' --dry-run", + "output": "symlink.out", + "exitCode": 0 + }] +} diff --git a/tests/specs/publish/symlink/deno.json b/tests/specs/publish/symlink/deno.json new file mode 100644 index 000000000..213a7cec6 --- /dev/null +++ b/tests/specs/publish/symlink/deno.json @@ -0,0 +1,7 @@ +{ + "name": "@foo/bar", + "version": "1.0.0", + "exports": { + ".": "./mod.ts" + } +} diff --git a/tests/specs/publish/symlink/mod.ts b/tests/specs/publish/symlink/mod.ts new file mode 100644 index 000000000..9e217d9b0 --- /dev/null +++ b/tests/specs/publish/symlink/mod.ts @@ -0,0 +1,3 @@ +export function foobar(): string { + return "string"; +} diff --git a/tests/specs/publish/symlink/symlink.out b/tests/specs/publish/symlink/symlink.out new file mode 100644 index 000000000..9f89f5b7c --- /dev/null +++ b/tests/specs/publish/symlink/symlink.out @@ -0,0 +1,15 @@ +Check [WILDCARD]mod.ts +Checking for slow types in the public API... +Check [WILDCARD]mod.ts +warning[unsupported-file-type]: unsupported file type 'symlink' + --> [WILDCARD]symlink + = hint: remove the file, or add it to 'publish.exclude' in the config file + + info: only files and directories are supported + info: the file was ignored and will not be published + docs: https://jsr.io/go/unsupported-file-type + +Simulating publish of @foo/bar@1.0.0 with files: + [WILDCARD]deno.json (87B) + [WILDCARD]mod.ts (56B) +Warning Aborting due to --dry-run |