From bbf8f69cb979be0f36c38ae52b1588e648b3252e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 13 Dec 2023 11:00:45 +0100 Subject: test: integration tests for tarring/unfurling (#21544) --- cli/tests/testdata/publish/missing_deno_json.out | 1 + cli/tests/testdata/publish/no_token.out | 1 + cli/tests/testdata/publish/successful.out | 3 +++ cli/tests/testdata/publish/successful/deno.json | 10 ++++++++++ cli/tests/testdata/publish/successful/mod.ts | 5 +++++ 5 files changed, 20 insertions(+) create mode 100644 cli/tests/testdata/publish/missing_deno_json.out create mode 100644 cli/tests/testdata/publish/no_token.out create mode 100644 cli/tests/testdata/publish/successful.out create mode 100644 cli/tests/testdata/publish/successful/deno.json create mode 100644 cli/tests/testdata/publish/successful/mod.ts (limited to 'cli/tests/testdata') diff --git a/cli/tests/testdata/publish/missing_deno_json.out b/cli/tests/testdata/publish/missing_deno_json.out new file mode 100644 index 000000000..adaf33ea8 --- /dev/null +++ b/cli/tests/testdata/publish/missing_deno_json.out @@ -0,0 +1 @@ +error: Failed to read deno.json file at [WILDCARD]missing_deno_json[WILDCARD] \ No newline at end of file diff --git a/cli/tests/testdata/publish/no_token.out b/cli/tests/testdata/publish/no_token.out new file mode 100644 index 000000000..41415094c --- /dev/null +++ b/cli/tests/testdata/publish/no_token.out @@ -0,0 +1 @@ +error: No means to authenticate. Pass a token to `--token`[WILDCARD] diff --git a/cli/tests/testdata/publish/successful.out b/cli/tests/testdata/publish/successful.out new file mode 100644 index 000000000..1049bbdb4 --- /dev/null +++ b/cli/tests/testdata/publish/successful.out @@ -0,0 +1,3 @@ +Publishing @foo/bar@1.0.0 ... +Successfully published @foo/bar@1.0.0 +http://127.0.0.1:4250/@foo/bar/1.0.0_meta.json diff --git a/cli/tests/testdata/publish/successful/deno.json b/cli/tests/testdata/publish/successful/deno.json new file mode 100644 index 000000000..930f3aa08 --- /dev/null +++ b/cli/tests/testdata/publish/successful/deno.json @@ -0,0 +1,10 @@ +{ + "name": "@foo/bar", + "version": "1.0.0", + "exports": { + ".": "./mod.ts" + }, + "imports": { + "@std/http": "jsr:@std/http@1" + } +} diff --git a/cli/tests/testdata/publish/successful/mod.ts b/cli/tests/testdata/publish/successful/mod.ts new file mode 100644 index 000000000..152bce40b --- /dev/null +++ b/cli/tests/testdata/publish/successful/mod.ts @@ -0,0 +1,5 @@ +import http from "@std/http"; + +export function foobar() { + return http.fileServer; +} -- cgit v1.2.3