diff options
Diffstat (limited to 'tests/testdata/publish')
72 files changed, 0 insertions, 538 deletions
diff --git a/tests/testdata/publish/allow_slow_types.out b/tests/testdata/publish/allow_slow_types.out deleted file mode 100644 index cd22c0ce7..000000000 --- a/tests/testdata/publish/allow_slow_types.out +++ /dev/null @@ -1,5 +0,0 @@ -Check file:///[WILDCARD]mod.ts -Warning Publishing a library with slow types is not recommended. This may lead to poor type checking performance for users of your package, may affect the quality of automatic documentation generation, and your package will not be shipped with a .d.ts file for Node.js users. -Publishing @foo/bar@1.1.0 ... -Successfully published @foo/bar@1.1.0 -Visit http://127.0.0.1:4250/@foo/bar@1.1.0 for details diff --git a/tests/testdata/publish/bare_node_builtins.out b/tests/testdata/publish/bare_node_builtins.out deleted file mode 100644 index c2cf2e2af..000000000 --- a/tests/testdata/publish/bare_node_builtins.out +++ /dev/null @@ -1,11 +0,0 @@ -Warning: Resolving "url" as "node:url" at file:///[WILDCARD]/publish/bare_node_builtins/mod.ts:1:22. If you want to use a built-in Node module, add a "node:" prefix. -Warning: Resolving "url" as "node:url" at file:///[WILDCARD]/publish/bare_node_builtins/mod.ts:1:22. If you want to use a built-in Node module, add a "node:" prefix. -Download http://localhost:4545/npm/registry/@types/node -Download http://localhost:4545/npm/registry/@types/node/node-18.16.19.tgz -Check file:///[WILDCARD]/publish/bare_node_builtins/mod.ts -Checking for slow types in the public API... -Check file:///[WILDCARD]/publish/bare_node_builtins/mod.ts -Simulating publish of @foo/bar@1.0.0 with files: - file:///[WILDCARD]/publish/bare_node_builtins/deno.json (87B) - file:///[WILDCARD]/publish/bare_node_builtins/mod.ts (121B) -Warning Aborting due to --dry-run diff --git a/tests/testdata/publish/bare_node_builtins/deno.json b/tests/testdata/publish/bare_node_builtins/deno.json deleted file mode 100644 index 213a7cec6..000000000 --- a/tests/testdata/publish/bare_node_builtins/deno.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "@foo/bar", - "version": "1.0.0", - "exports": { - ".": "./mod.ts" - } -} diff --git a/tests/testdata/publish/bare_node_builtins/mod.ts b/tests/testdata/publish/bare_node_builtins/mod.ts deleted file mode 100644 index 04374d8b7..000000000 --- a/tests/testdata/publish/bare_node_builtins/mod.ts +++ /dev/null @@ -1,5 +0,0 @@ -import * as url from "url"; - -export function foobar(): { href: string } { - return url.pathToFileURL("/foo/bar"); -} diff --git a/tests/testdata/publish/bare_node_builtins_no_warnings.out b/tests/testdata/publish/bare_node_builtins_no_warnings.out deleted file mode 100644 index d8d43eff6..000000000 --- a/tests/testdata/publish/bare_node_builtins_no_warnings.out +++ /dev/null @@ -1,9 +0,0 @@ -Download http://localhost:4545/npm/registry/@types/node -Download http://localhost:4545/npm/registry/@types/node/node-18.16.19.tgz -Check file:///[WILDCARD]/publish/bare_node_builtins/mod.ts -Checking for slow types in the public API... -Check file:///[WILDCARD]/publish/bare_node_builtins/mod.ts -Simulating publish of @foo/bar@1.0.0 with files: - file:///[WILDCARD]/publish/bare_node_builtins/deno.json (87B) - file:///[WILDCARD]/publish/bare_node_builtins/mod.ts (121B) -Warning Aborting due to --dry-run diff --git a/tests/testdata/publish/deno_jsonc.out b/tests/testdata/publish/deno_jsonc.out deleted file mode 100644 index 820554943..000000000 --- a/tests/testdata/publish/deno_jsonc.out +++ /dev/null @@ -1,6 +0,0 @@ -Check file:///[WILDCARD]/publish/deno_jsonc/mod.ts -Checking for slow types in the public API... -Check file:///[WILDCARD]/publish/deno_jsonc/mod.ts -Publishing @foo/bar@1.0.0 ... -Successfully published @foo/bar@1.0.0 -Visit http://127.0.0.1:4250/@foo/bar@1.0.0 for details diff --git a/tests/testdata/publish/deno_jsonc/deno.jsonc b/tests/testdata/publish/deno_jsonc/deno.jsonc deleted file mode 100644 index 4c9dfb08c..000000000 --- a/tests/testdata/publish/deno_jsonc/deno.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -{ - // It's .jsonc file so it can have comments - "name": "@foo/bar", - "version": "1.0.0", - "exports": { - ".": "./mod.ts" - }, - "imports": { - "@std/http": "./std_http.ts" - } -} diff --git a/tests/testdata/publish/deno_jsonc/mod.ts b/tests/testdata/publish/deno_jsonc/mod.ts deleted file mode 100644 index 6e8a61bae..000000000 --- a/tests/testdata/publish/deno_jsonc/mod.ts +++ /dev/null @@ -1,7 +0,0 @@ -import http from "@std/http"; - -export function foobar(): { fileServer(): void } { - return { - fileServer: http.fileServer, - }; -} diff --git a/tests/testdata/publish/deno_jsonc/std_http.ts b/tests/testdata/publish/deno_jsonc/std_http.ts deleted file mode 100644 index 9d57b36f3..000000000 --- a/tests/testdata/publish/deno_jsonc/std_http.ts +++ /dev/null @@ -1,6 +0,0 @@ -// temp until we get jsr:@std/http in the test server -export default { - fileServer() { - console.log("Hi"); - }, -}; diff --git a/tests/testdata/publish/dry_run.out b/tests/testdata/publish/dry_run.out deleted file mode 100644 index afc2ba66a..000000000 --- a/tests/testdata/publish/dry_run.out +++ /dev/null @@ -1,8 +0,0 @@ -Check file:///[WILDCARD]/mod.ts -Checking for slow types in the public API... -Check file:///[WILDCARD]/mod.ts -Simulating publish of @foo/bar@1.0.0 with files: - [WILDCARD]deno.json (140B) - [WILDCARD]mod.ts (137B) - [WILDCARD]std_http.ts (119B) -Warning Aborting due to --dry-run diff --git a/tests/testdata/publish/has_slow_types.out b/tests/testdata/publish/has_slow_types.out deleted file mode 100644 index 43ac86658..000000000 --- a/tests/testdata/publish/has_slow_types.out +++ /dev/null @@ -1,22 +0,0 @@ -Check file:///[WILDCARD]/mod.ts -Checking for slow types in the public API... -error[missing-explicit-return-type]: missing explicit return type in the public API - --> [WILDCARD]mod.ts:2:17 - | -2 | export function getRandom() { - | ^^^^^^^^^ this function is missing an explicit return type - = hint: add an explicit return type to the function - - info: all functions in the public API must have an explicit return type - docs: https://jsr.io/go/slow-type-missing-explicit-return-type - -This package contains errors for slow types. Fixing these errors will: - - 1. Significantly improve your package users' type checking performance. - 2. Improve the automatic documentation generation. - 3. Enable automatic .d.ts generation for Node.js. - -Don't want to bother? You can choose to skip this step by -providing the --allow-slow-types flag. - -error: Found 1 problem diff --git a/tests/testdata/publish/has_slow_types/deno.json b/tests/testdata/publish/has_slow_types/deno.json deleted file mode 100644 index 5826e5529..000000000 --- a/tests/testdata/publish/has_slow_types/deno.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "@foo/bar", - "version": "1.1.0", - "exports": { - ".": "./mod.ts" - } -} diff --git a/tests/testdata/publish/has_slow_types/mod.ts b/tests/testdata/publish/has_slow_types/mod.ts deleted file mode 100644 index 025311049..000000000 --- a/tests/testdata/publish/has_slow_types/mod.ts +++ /dev/null @@ -1,4 +0,0 @@ -// requires an explicit type annotation of `number` -export function getRandom() { - return Math.random(); -} diff --git a/tests/testdata/publish/invalid_import.out b/tests/testdata/publish/invalid_import.out deleted file mode 100644 index f6742de95..000000000 --- a/tests/testdata/publish/invalid_import.out +++ /dev/null @@ -1,32 +0,0 @@ -Download http://localhost:4545/welcome.ts -Download http://localhost:4545/echo.ts -Download http://localhost:4545/npm/registry/chalk -Download http://localhost:4545/npm/registry/chalk/chalk-5.0.1.tgz -Check file:///[WILDCARD]/mod.ts -Checking for slow types in the public API... -Check file://[WILDCARD]mod.ts -error[invalid-external-import]: invalid import to a non-JSR 'http' specifier - --> [WILDCARD]mod.ts:1:8 - | -1 | import "http://localhost:4545/welcome.ts"; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the specifier - = hint: replace this import with one from jsr or npm, or vendor the dependency into your package - - info: the import was resolved to 'http://localhost:4545/welcome.ts' - info: this specifier is not allowed to be imported on jsr - info: jsr only supports importing `jsr:`, `npm:`, and `data:` specifiers - docs: https://jsr.io/go/invalid-external-import - -error[invalid-external-import]: invalid import to a non-JSR 'http' specifier - --> [WILDCARD]mod.ts:2:8 - | -2 | import "$echo"; - | ^^^^^^^ the specifier - = hint: replace this import with one from jsr or npm, or vendor the dependency into your package - - info: the import was resolved to 'http://localhost:4545/echo.ts' - info: this specifier is not allowed to be imported on jsr - info: jsr only supports importing `jsr:`, `npm:`, and `data:` specifiers - docs: https://jsr.io/go/invalid-external-import - -error: Found 2 problems diff --git a/tests/testdata/publish/invalid_import/deno.json b/tests/testdata/publish/invalid_import/deno.json deleted file mode 100644 index 49b666d22..000000000 --- a/tests/testdata/publish/invalid_import/deno.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "@foo/bar", - "version": "1.0.0", - "imports": { - "$echo": "http://localhost:4545/echo.ts" - }, - "exports": { - ".": "./mod.ts" - } -} diff --git a/tests/testdata/publish/invalid_import/mod.ts b/tests/testdata/publish/invalid_import/mod.ts deleted file mode 100644 index bdaf010e2..000000000 --- a/tests/testdata/publish/invalid_import/mod.ts +++ /dev/null @@ -1,9 +0,0 @@ -import "http://localhost:4545/welcome.ts"; -import "$echo"; - -import "data:application/javascript,console.log(1)"; -import "npm:chalk@5"; - -export function foobar(): string { - return "string"; -} diff --git a/tests/testdata/publish/invalid_import_esm_sh_suggestion.out b/tests/testdata/publish/invalid_import_esm_sh_suggestion.out deleted file mode 100644 index a014f3de6..000000000 --- a/tests/testdata/publish/invalid_import_esm_sh_suggestion.out +++ /dev/null @@ -1,20 +0,0 @@ -[WILDCARD] -Check file:///[WILDCARD]/mod.ts -Checking for slow types in the public API... -Check file:///[WILDCARD]mod.ts -error[invalid-external-import]: invalid import to a non-JSR 'http' specifier - --> [WILDCARD]mod.ts:1:8 - | -1 | import "http://esm.sh/react-dom@18.2.0/server"; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the specifier - = hint: replace this import with one from jsr or npm, or vendor the dependency into your package - | -1 | "npm:react-dom@18.2.0" - | ---------------------- try this specifier - - info: the import was resolved to 'http://esm.sh/react-dom@18.2.0/server' - info: this specifier is not allowed to be imported on jsr - info: jsr only supports importing `jsr:`, `npm:`, and `data:` specifiers - docs: https://jsr.io/go/invalid-external-import - -error: Found 1 problem diff --git a/tests/testdata/publish/invalid_import_esm_sh_suggestion/deno.json b/tests/testdata/publish/invalid_import_esm_sh_suggestion/deno.json deleted file mode 100644 index 49b666d22..000000000 --- a/tests/testdata/publish/invalid_import_esm_sh_suggestion/deno.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "@foo/bar", - "version": "1.0.0", - "imports": { - "$echo": "http://localhost:4545/echo.ts" - }, - "exports": { - ".": "./mod.ts" - } -} diff --git a/tests/testdata/publish/invalid_import_esm_sh_suggestion/mod.ts b/tests/testdata/publish/invalid_import_esm_sh_suggestion/mod.ts deleted file mode 100644 index e597218ed..000000000 --- a/tests/testdata/publish/invalid_import_esm_sh_suggestion/mod.ts +++ /dev/null @@ -1,5 +0,0 @@ -import "http://esm.sh/react-dom@18.2.0/server"; - -export function foobar(): string { - return "string"; -} diff --git a/tests/testdata/publish/invalid_path.out b/tests/testdata/publish/invalid_path.out deleted file mode 100644 index d47cb01de..000000000 --- a/tests/testdata/publish/invalid_path.out +++ /dev/null @@ -1,11 +0,0 @@ -Check file://[WILDCARD]mod.ts -Checking for slow types in the public API... -Check file://[WILDCARD]mod.ts -error[invalid-path]: package path must not contain whitespace (found ' ') - --> [WILDCARD]path with spaces.txt - = hint: rename or remove the file, or add it to 'publish.exclude' in the config file - - info: to portably support all platforms, including windows, the allowed characters in package paths are limited - docs: https://jsr.io/go/invalid-path - -error: Found 1 problem diff --git a/tests/testdata/publish/invalid_path/deno.json b/tests/testdata/publish/invalid_path/deno.json deleted file mode 100644 index 213a7cec6..000000000 --- a/tests/testdata/publish/invalid_path/deno.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "@foo/bar", - "version": "1.0.0", - "exports": { - ".": "./mod.ts" - } -} diff --git a/tests/testdata/publish/invalid_path/mod.ts b/tests/testdata/publish/invalid_path/mod.ts deleted file mode 100644 index 9e217d9b0..000000000 --- a/tests/testdata/publish/invalid_path/mod.ts +++ /dev/null @@ -1,3 +0,0 @@ -export function foobar(): string { - return "string"; -} diff --git a/tests/testdata/publish/invalid_path/path with spaces.txt b/tests/testdata/publish/invalid_path/path with spaces.txt deleted file mode 100644 index e69de29bb..000000000 --- a/tests/testdata/publish/invalid_path/path with spaces.txt +++ /dev/null diff --git a/tests/testdata/publish/javascript_decl_file.out b/tests/testdata/publish/javascript_decl_file.out deleted file mode 100644 index 48128e82f..000000000 --- a/tests/testdata/publish/javascript_decl_file.out +++ /dev/null @@ -1,5 +0,0 @@ -Check file:///[WILDCARD]/javascript_decl_file/mod.js -Checking for slow types in the public API... -Publishing @foo/bar@1.0.0 ... -Successfully published @foo/bar@1.0.0 -Visit http://127.0.0.1:4250/@foo/bar@1.0.0 for details diff --git a/tests/testdata/publish/javascript_decl_file/deno.json b/tests/testdata/publish/javascript_decl_file/deno.json deleted file mode 100644 index e5dbfa8d3..000000000 --- a/tests/testdata/publish/javascript_decl_file/deno.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "@foo/bar", - "version": "1.0.0", - "exports": { - ".": "./mod.js" - } -} diff --git a/tests/testdata/publish/javascript_decl_file/mod.d.ts b/tests/testdata/publish/javascript_decl_file/mod.d.ts deleted file mode 100644 index b2f6c69a8..000000000 --- a/tests/testdata/publish/javascript_decl_file/mod.d.ts +++ /dev/null @@ -1 +0,0 @@ -export function getRandom(): number; diff --git a/tests/testdata/publish/javascript_decl_file/mod.js b/tests/testdata/publish/javascript_decl_file/mod.js deleted file mode 100644 index 2395e622b..000000000 --- a/tests/testdata/publish/javascript_decl_file/mod.js +++ /dev/null @@ -1,5 +0,0 @@ -/// <reference types="./mod.d.ts" /> - -export function getRandom() { - return Math.random(); -} diff --git a/tests/testdata/publish/javascript_missing_decl_file.out b/tests/testdata/publish/javascript_missing_decl_file.out deleted file mode 100644 index 08e92e320..000000000 --- a/tests/testdata/publish/javascript_missing_decl_file.out +++ /dev/null @@ -1,20 +0,0 @@ -Checking for slow types in the public API... -warning[unsupported-javascript-entrypoint]: used a JavaScript module without type declarations as an entrypoint - --> [WILDCARD]mod.js - = hint: add a type declaration (d.ts) for the JavaScript module, or rewrite it to TypeScript - - info: JavaScript files with no corresponding declaration require type inference to be type checked - info: fast check avoids type inference, so JavaScript entrypoints should be avoided - docs: https://jsr.io/go/slow-type-unsupported-javascript-entrypoint - -warning[unsupported-javascript-entrypoint]: used a JavaScript module without type declarations as an entrypoint - --> [WILDCARD]other.js - = hint: add a type declaration (d.ts) for the JavaScript module, or rewrite it to TypeScript - - info: JavaScript files with no corresponding declaration require type inference to be type checked - info: fast check avoids type inference, so JavaScript entrypoints should be avoided - docs: https://jsr.io/go/slow-type-unsupported-javascript-entrypoint - -Publishing @foo/bar@1.0.0 ... -Successfully published @foo/bar@1.0.0 -Visit http://127.0.0.1:4250/@foo/bar@1.0.0 for details diff --git a/tests/testdata/publish/javascript_missing_decl_file/deno.json b/tests/testdata/publish/javascript_missing_decl_file/deno.json deleted file mode 100644 index e12927c26..000000000 --- a/tests/testdata/publish/javascript_missing_decl_file/deno.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "name": "@foo/bar", - "version": "1.0.0", - "exports": { - ".": "./mod.js", - "./other": "./other.js" - } -} diff --git a/tests/testdata/publish/javascript_missing_decl_file/mod.js b/tests/testdata/publish/javascript_missing_decl_file/mod.js deleted file mode 100644 index 4a62fa5b4..000000000 --- a/tests/testdata/publish/javascript_missing_decl_file/mod.js +++ /dev/null @@ -1,3 +0,0 @@ -export function getRandom() { - return Math.random(); -} diff --git a/tests/testdata/publish/javascript_missing_decl_file/other.js b/tests/testdata/publish/javascript_missing_decl_file/other.js deleted file mode 100644 index 89ffb80ba..000000000 --- a/tests/testdata/publish/javascript_missing_decl_file/other.js +++ /dev/null @@ -1,3 +0,0 @@ -export function other() { - return Math.random(); -} diff --git a/tests/testdata/publish/jsr_jsonc/jsr.jsonc b/tests/testdata/publish/jsr_jsonc/jsr.jsonc deleted file mode 100644 index 4c9dfb08c..000000000 --- a/tests/testdata/publish/jsr_jsonc/jsr.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -{ - // It's .jsonc file so it can have comments - "name": "@foo/bar", - "version": "1.0.0", - "exports": { - ".": "./mod.ts" - }, - "imports": { - "@std/http": "./std_http.ts" - } -} diff --git a/tests/testdata/publish/jsr_jsonc/mod.out b/tests/testdata/publish/jsr_jsonc/mod.out deleted file mode 100644 index 38b61d568..000000000 --- a/tests/testdata/publish/jsr_jsonc/mod.out +++ /dev/null @@ -1,6 +0,0 @@ -Check file:///[WILDCARD]/publish/jsr_jsonc/mod.ts -Checking for slow types in the public API... -Check file:///[WILDCARD]/publish/jsr_jsonc/mod.ts -Publishing @foo/bar@1.0.0 ... -Successfully published @foo/bar@1.0.0 -Visit http://127.0.0.1:4250/@foo/bar@1.0.0 for details diff --git a/tests/testdata/publish/jsr_jsonc/mod.ts b/tests/testdata/publish/jsr_jsonc/mod.ts deleted file mode 100644 index 6e8a61bae..000000000 --- a/tests/testdata/publish/jsr_jsonc/mod.ts +++ /dev/null @@ -1,7 +0,0 @@ -import http from "@std/http"; - -export function foobar(): { fileServer(): void } { - return { - fileServer: http.fileServer, - }; -} diff --git a/tests/testdata/publish/jsr_jsonc/std_http.ts b/tests/testdata/publish/jsr_jsonc/std_http.ts deleted file mode 100644 index 9d57b36f3..000000000 --- a/tests/testdata/publish/jsr_jsonc/std_http.ts +++ /dev/null @@ -1,6 +0,0 @@ -// temp until we get jsr:@std/http in the test server -export default { - fileServer() { - console.log("Hi"); - }, -}; diff --git a/tests/testdata/publish/missing_deno_json.out b/tests/testdata/publish/missing_deno_json.out deleted file mode 100644 index 2c074bf83..000000000 --- a/tests/testdata/publish/missing_deno_json.out +++ /dev/null @@ -1 +0,0 @@ -error: Couldn't find a deno.json, deno.jsonc, jsr.json or jsr.jsonc configuration file in [WILDCARD]
\ No newline at end of file diff --git a/tests/testdata/publish/missing_deno_json/main.ts b/tests/testdata/publish/missing_deno_json/main.ts deleted file mode 100644 index 8d9b8a22a..000000000 --- a/tests/testdata/publish/missing_deno_json/main.ts +++ /dev/null @@ -1,3 +0,0 @@ -export function add(a: number, b: number): number { - return a + b; -} diff --git a/tests/testdata/publish/no_token.out b/tests/testdata/publish/no_token.out deleted file mode 100644 index 41415094c..000000000 --- a/tests/testdata/publish/no_token.out +++ /dev/null @@ -1 +0,0 @@ -error: No means to authenticate. Pass a token to `--token`[WILDCARD] diff --git a/tests/testdata/publish/node_specifier.out b/tests/testdata/publish/node_specifier.out deleted file mode 100644 index d3e4a367b..000000000 --- a/tests/testdata/publish/node_specifier.out +++ /dev/null @@ -1,8 +0,0 @@ -Download http://localhost:4545/npm/registry/@types/node -Download http://localhost:4545/npm/registry/@types/node/node-[WILDCARD].tgz -Check file:///[WILDCARD]/mod.ts -Checking for slow types in the public API... -Check file:///[WILDCARD]/publish/node_specifier/mod.ts -Publishing @foo/bar@1.0.0 ... -Successfully published @foo/bar@1.0.0 -Visit http://127.0.0.1:4250/@foo/bar@1.0.0 for details diff --git a/tests/testdata/publish/node_specifier/deno.json b/tests/testdata/publish/node_specifier/deno.json deleted file mode 100644 index 213a7cec6..000000000 --- a/tests/testdata/publish/node_specifier/deno.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "@foo/bar", - "version": "1.0.0", - "exports": { - ".": "./mod.ts" - } -} diff --git a/tests/testdata/publish/node_specifier/mod.ts b/tests/testdata/publish/node_specifier/mod.ts deleted file mode 100644 index 9d8263709..000000000 --- a/tests/testdata/publish/node_specifier/mod.ts +++ /dev/null @@ -1,5 +0,0 @@ -import "node:http"; - -export function foobar(): string { - return "string"; -} diff --git a/tests/testdata/publish/package_json.out b/tests/testdata/publish/package_json.out deleted file mode 100644 index 7b54ce8da..000000000 --- a/tests/testdata/publish/package_json.out +++ /dev/null @@ -1,8 +0,0 @@ -Download http://localhost:4545/npm/registry/picocolors -Download http://localhost:4545/npm/registry/picocolors/picocolors-1.0.0.tgz -Check file:///[WILDCARD]/publish/package_json/mod.ts -Checking for slow types in the public API... -Check file:///[WILDCARD]/publish/package_json/mod.ts -Publishing @foo/bar@1.0.0 ... -Successfully published @foo/bar@1.0.0 -Visit http://127.0.0.1:4250/@foo/bar@1.0.0 for details diff --git a/tests/testdata/publish/package_json/deno.json b/tests/testdata/publish/package_json/deno.json deleted file mode 100644 index 6e2826ef5..000000000 --- a/tests/testdata/publish/package_json/deno.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "name": "@foo/bar", - "version": "1.0.0", - "exports": { - ".": "./mod.ts" - }, - "nodeModulesDir": false -} diff --git a/tests/testdata/publish/package_json/mod.ts b/tests/testdata/publish/package_json/mod.ts deleted file mode 100644 index ae98962fa..000000000 --- a/tests/testdata/publish/package_json/mod.ts +++ /dev/null @@ -1,9 +0,0 @@ -import pc from "picocolors"; - -export function add(a: number, b: number): number { - return a + b; -} - -export function getValue(): string { - return pc.green("hey"); -} diff --git a/tests/testdata/publish/package_json/package.json b/tests/testdata/publish/package_json/package.json deleted file mode 100644 index c1b171f4c..000000000 --- a/tests/testdata/publish/package_json/package.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "@deno/foo", - "version": "0.0.1", - "dependencies": { - "picocolors": "*" - } -} diff --git a/tests/testdata/publish/sloppy_imports.out b/tests/testdata/publish/sloppy_imports.out deleted file mode 100644 index 342eccdc3..000000000 --- a/tests/testdata/publish/sloppy_imports.out +++ /dev/null @@ -1,10 +0,0 @@ -Warning Sloppy module resolution (hint: specify path to index.ts file in directory instead) - at file:///[WILDCARD]/publish/sloppy_imports/mod.ts:1:20 -Check file:///[WILDCARD]/publish/sloppy_imports/mod.ts -Checking for slow types in the public API... -Check file:///[WILDCARD]/publish/sloppy_imports/mod.ts -Simulating publish of @foo/bar@1.0.0 with files: - file:///[WILDCARD]/publish/sloppy_imports/b/index.ts (27B) - file:///[WILDCARD]/publish/sloppy_imports/deno.json (87B) - file:///[WILDCARD]/publish/sloppy_imports/mod.ts (35B) -Warning Aborting due to --dry-run diff --git a/tests/testdata/publish/sloppy_imports/b/index.ts b/tests/testdata/publish/sloppy_imports/b/index.ts deleted file mode 100644 index 1392bf6ba..000000000 --- a/tests/testdata/publish/sloppy_imports/b/index.ts +++ /dev/null @@ -1 +0,0 @@ -export const PI = Math.PI; diff --git a/tests/testdata/publish/sloppy_imports/deno.json b/tests/testdata/publish/sloppy_imports/deno.json deleted file mode 100644 index 213a7cec6..000000000 --- a/tests/testdata/publish/sloppy_imports/deno.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "@foo/bar", - "version": "1.0.0", - "exports": { - ".": "./mod.ts" - } -} diff --git a/tests/testdata/publish/sloppy_imports/mod.ts b/tests/testdata/publish/sloppy_imports/mod.ts deleted file mode 100644 index f5084bb3b..000000000 --- a/tests/testdata/publish/sloppy_imports/mod.ts +++ /dev/null @@ -1 +0,0 @@ -export { PI } from "./b"; diff --git a/tests/testdata/publish/sloppy_imports_no_warnings.out b/tests/testdata/publish/sloppy_imports_no_warnings.out deleted file mode 100644 index 8659010b7..000000000 --- a/tests/testdata/publish/sloppy_imports_no_warnings.out +++ /dev/null @@ -1,8 +0,0 @@ -Check file:///[WILDCARD]/publish/sloppy_imports/mod.ts -Checking for slow types in the public API... -Check file:///[WILDCARD]/publish/sloppy_imports/mod.ts -Simulating publish of @foo/bar@1.0.0 with files: - file:///[WILDCARD]/publish/sloppy_imports/b/index.ts (27B) - file:///[WILDCARD]/publish/sloppy_imports/deno.json (87B) - file:///[WILDCARD]/publish/sloppy_imports/mod.ts (35B) -Warning Aborting due to --dry-run diff --git a/tests/testdata/publish/sloppy_imports_not_enabled.out b/tests/testdata/publish/sloppy_imports_not_enabled.out deleted file mode 100644 index c2f74ad2c..000000000 --- a/tests/testdata/publish/sloppy_imports_not_enabled.out +++ /dev/null @@ -1,2 +0,0 @@ -error: [WILDCARD] Maybe specify path to 'index.ts' file in directory instead or run with --unstable-sloppy-imports - at file:///[WILDCARD]/sloppy_imports/mod.ts:1:20 diff --git a/tests/testdata/publish/successful.out b/tests/testdata/publish/successful.out deleted file mode 100644 index a3da4290d..000000000 --- a/tests/testdata/publish/successful.out +++ /dev/null @@ -1,6 +0,0 @@ -Check file:///[WILDCARD]/publish/successful/mod.ts -Checking for slow types in the public API... -Check file:///[WILDCARD]/publish/successful/mod.ts -Publishing @foo/bar@1.0.0 ... -Successfully published @foo/bar@1.0.0 -Visit http://127.0.0.1:4250/@foo/bar@1.0.0 for details diff --git a/tests/testdata/publish/successful_no_check.out b/tests/testdata/publish/successful_no_check.out deleted file mode 100644 index 01c53a9ba..000000000 --- a/tests/testdata/publish/successful_no_check.out +++ /dev/null @@ -1,4 +0,0 @@ -Checking for slow types in the public API... -Publishing @foo/bar@1.0.0 ... -Successfully published @foo/bar@1.0.0 -Visit http://127.0.0.1:4250/@foo/bar@1.0.0 for details diff --git a/tests/testdata/publish/symlink.out b/tests/testdata/publish/symlink.out deleted file mode 100644 index 9f89f5b7c..000000000 --- a/tests/testdata/publish/symlink.out +++ /dev/null @@ -1,15 +0,0 @@ -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 diff --git a/tests/testdata/publish/symlink/deno.json b/tests/testdata/publish/symlink/deno.json deleted file mode 100644 index 213a7cec6..000000000 --- a/tests/testdata/publish/symlink/deno.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "@foo/bar", - "version": "1.0.0", - "exports": { - ".": "./mod.ts" - } -} diff --git a/tests/testdata/publish/symlink/mod.ts b/tests/testdata/publish/symlink/mod.ts deleted file mode 100644 index 9e217d9b0..000000000 --- a/tests/testdata/publish/symlink/mod.ts +++ /dev/null @@ -1,3 +0,0 @@ -export function foobar(): string { - return "string"; -} diff --git a/tests/testdata/publish/symlink/symlink b/tests/testdata/publish/symlink/symlink deleted file mode 120000 index 0df9bcd04..000000000 --- a/tests/testdata/publish/symlink/symlink +++ /dev/null @@ -1 +0,0 @@ -./mod.ts
\ No newline at end of file diff --git a/tests/testdata/publish/unanalyzable_dynamic_import.out b/tests/testdata/publish/unanalyzable_dynamic_import.out deleted file mode 100644 index 7f3ca5555..000000000 --- a/tests/testdata/publish/unanalyzable_dynamic_import.out +++ /dev/null @@ -1,16 +0,0 @@ -Check file://[WILDCARD]/mod.ts -Checking for slow types in the public API... -Check file://[WILDCARD]/mod.ts -warning[unanalyzable-dynamic-import]: unable to analyze dynamic import - --> [WILDCARD]mod.ts:2:14 - | -2 | await import("asd " + asd); - | ^^^^^^^^^^^^ the unanalyzable dynamic import - - info: after publishing this package, imports from the local import map / package.json do not work - info: dynamic imports that can not be analyzed at publish time will not be rewritten automatically - info: make sure the dynamic import is resolvable at runtime without an import map / package.json - -Publishing @foo/bar@1.0.0 ... -Successfully published @foo/bar@1.0.0 -Visit http://127.0.0.1:4250/@foo/bar@1.0.0 for details diff --git a/tests/testdata/publish/unanalyzable_dynamic_import/deno.json b/tests/testdata/publish/unanalyzable_dynamic_import/deno.json deleted file mode 100644 index 213a7cec6..000000000 --- a/tests/testdata/publish/unanalyzable_dynamic_import/deno.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "@foo/bar", - "version": "1.0.0", - "exports": { - ".": "./mod.ts" - } -} diff --git a/tests/testdata/publish/unanalyzable_dynamic_import/mod.ts b/tests/testdata/publish/unanalyzable_dynamic_import/mod.ts deleted file mode 100644 index 291311385..000000000 --- a/tests/testdata/publish/unanalyzable_dynamic_import/mod.ts +++ /dev/null @@ -1,2 +0,0 @@ -const asd = "asd"; -await import("asd " + asd); diff --git a/tests/testdata/publish/unsupported_jsx_tsx/foo.jsx b/tests/testdata/publish/unsupported_jsx_tsx/foo.jsx deleted file mode 100644 index 021c2d49e..000000000 --- a/tests/testdata/publish/unsupported_jsx_tsx/foo.jsx +++ /dev/null @@ -1,5 +0,0 @@ -import { renderToString } from "npm:preact-render-to-string"; - -export default function render() { - return renderToString(<div>foo.tsx</div>); -} diff --git a/tests/testdata/publish/unsupported_jsx_tsx/foo.tsx b/tests/testdata/publish/unsupported_jsx_tsx/foo.tsx deleted file mode 100644 index 021c2d49e..000000000 --- a/tests/testdata/publish/unsupported_jsx_tsx/foo.tsx +++ /dev/null @@ -1,5 +0,0 @@ -import { renderToString } from "npm:preact-render-to-string"; - -export default function render() { - return renderToString(<div>foo.tsx</div>); -} diff --git a/tests/testdata/publish/unsupported_jsx_tsx/jsr.jsonc b/tests/testdata/publish/unsupported_jsx_tsx/jsr.jsonc deleted file mode 100644 index 7aea08842..000000000 --- a/tests/testdata/publish/unsupported_jsx_tsx/jsr.jsonc +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "@foo/bar", - "version": "1.0.0", - "exports": { - ".": "./mod.ts" - }, - "compilerOptions": { - "jsx": "react-jsx", - "jsxImportSource": "npm:preact" - } -} diff --git a/tests/testdata/publish/unsupported_jsx_tsx/mod.out b/tests/testdata/publish/unsupported_jsx_tsx/mod.out deleted file mode 100644 index 5f085fb33..000000000 --- a/tests/testdata/publish/unsupported_jsx_tsx/mod.out +++ /dev/null @@ -1,17 +0,0 @@ -[WILDCARD] -Check file:///[WILDCARD]/publish/unsupported_jsx_tsx/mod.ts -Checking for slow types in the public API... -Check file:///[WILDCARD]/publish/unsupported_jsx_tsx/mod.ts -warning[unsupported-jsx-tsx]: JSX and TSX files are currently not supported - --> [WILDCARD]foo.jsx - - info: follow https://github.com/jsr-io/jsr/issues/24 for updates - -warning[unsupported-jsx-tsx]: JSX and TSX files are currently not supported - --> [WILDCARD]foo.tsx - - info: follow https://github.com/jsr-io/jsr/issues/24 for updates - -Publishing @foo/bar@1.0.0 ... -Successfully published @foo/bar@1.0.0 -Visit http://127.0.0.1:4250/@foo/bar@1.0.0 for details diff --git a/tests/testdata/publish/unsupported_jsx_tsx/mod.ts b/tests/testdata/publish/unsupported_jsx_tsx/mod.ts deleted file mode 100644 index 4631a829d..000000000 --- a/tests/testdata/publish/unsupported_jsx_tsx/mod.ts +++ /dev/null @@ -1,7 +0,0 @@ -import fooTsx from "./foo.tsx"; -import fooJsx from "./foo.jsx"; - -export function renderTsxJsx() { - console.log(fooTsx()); - console.log(fooJsx()); -} diff --git a/tests/testdata/publish/workspace.out b/tests/testdata/publish/workspace.out deleted file mode 100644 index 17f2dab3b..000000000 --- a/tests/testdata/publish/workspace.out +++ /dev/null @@ -1,12 +0,0 @@ -Publishing a workspace... -Check file:///[WILDCARD]/workspace/foo/mod.ts -Check file:///[WILDCARD]/workspace/bar/mod.ts -Checking for slow types in the public API... -Check file:///[WILDCARD]/workspace/foo/mod.ts -Check file:///[WILDCARD]/workspace/bar/mod.ts -Publishing @foo/bar@1.0.0 ... -Successfully published @foo/bar@1.0.0 -Visit http://127.0.0.1:4250/@foo/bar@1.0.0 for details -Publishing @foo/foo@1.0.0 ... -Successfully published @foo/foo@1.0.0 -Visit http://127.0.0.1:4250/@foo/foo@1.0.0 for details diff --git a/tests/testdata/publish/workspace/bar/deno.json b/tests/testdata/publish/workspace/bar/deno.json deleted file mode 100644 index 213a7cec6..000000000 --- a/tests/testdata/publish/workspace/bar/deno.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "@foo/bar", - "version": "1.0.0", - "exports": { - ".": "./mod.ts" - } -} diff --git a/tests/testdata/publish/workspace/bar/mod.ts b/tests/testdata/publish/workspace/bar/mod.ts deleted file mode 100644 index 8d9b8a22a..000000000 --- a/tests/testdata/publish/workspace/bar/mod.ts +++ /dev/null @@ -1,3 +0,0 @@ -export function add(a: number, b: number): number { - return a + b; -} diff --git a/tests/testdata/publish/workspace/deno.json b/tests/testdata/publish/workspace/deno.json deleted file mode 100644 index 57602aab5..000000000 --- a/tests/testdata/publish/workspace/deno.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "workspaces": [ - "foo", - "bar" - ] -} diff --git a/tests/testdata/publish/workspace/foo/deno.json b/tests/testdata/publish/workspace/foo/deno.json deleted file mode 100644 index 79563d36c..000000000 --- a/tests/testdata/publish/workspace/foo/deno.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "@foo/foo", - "version": "1.0.0", - "exports": { - ".": "./mod.ts" - }, - "imports": { - "bar": "jsr:@foo/bar@1" - } -} diff --git a/tests/testdata/publish/workspace/foo/mod.ts b/tests/testdata/publish/workspace/foo/mod.ts deleted file mode 100644 index adf584463..000000000 --- a/tests/testdata/publish/workspace/foo/mod.ts +++ /dev/null @@ -1,5 +0,0 @@ -import * as bar from "bar"; - -export function add(a: number, b: number): number { - return bar.add(a, b); -} diff --git a/tests/testdata/publish/workspace_individual.out b/tests/testdata/publish/workspace_individual.out deleted file mode 100644 index e734ae06e..000000000 --- a/tests/testdata/publish/workspace_individual.out +++ /dev/null @@ -1,6 +0,0 @@ -Check file:///[WILDCARD]/workspace/bar/mod.ts -Checking for slow types in the public API... -Check file:///[WILDCARD]/workspace/bar/mod.ts -Publishing @foo/bar@1.0.0 ... -Successfully published @foo/bar@1.0.0 -Visit http://127.0.0.1:4250/@foo/bar@1.0.0 for details |
