summaryrefslogtreecommitdiff
path: root/tests/testdata
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-03-15 15:46:51 -0400
committerGitHub <noreply@github.com>2024-03-15 15:46:51 -0400
commite40f9a5c14c51b6d05812e48fa072148fe79c74d (patch)
treee492e91717c7ddda3e31139f870706870449cdde /tests/testdata
parent392579b5a673964752e38e1e0d9c2c9ae223a382 (diff)
chore: move more tests away from itest (#22909)
Part of #22907
Diffstat (limited to 'tests/testdata')
-rw-r--r--tests/testdata/coverage/doesnt_exist.out1
-rw-r--r--tests/testdata/jsr/deps/main.out13
-rw-r--r--tests/testdata/jsr/deps/main.ts3
-rw-r--r--tests/testdata/jsr/deps/main_info.out22
-rw-r--r--tests/testdata/jsr/import_https_url/analyzable.out8
-rw-r--r--tests/testdata/jsr/import_https_url/analyzable.ts1
-rw-r--r--tests/testdata/jsr/import_https_url/unanalyzable.out7
-rw-r--r--tests/testdata/jsr/import_https_url/unanalyzable.ts1
-rw-r--r--tests/testdata/jsr/jsx_with_no_pragmas/main.out7
-rw-r--r--tests/testdata/jsr/jsx_with_no_pragmas/main.ts3
-rw-r--r--tests/testdata/jsr/jsx_with_pragmas/main.out3
-rw-r--r--tests/testdata/jsr/jsx_with_pragmas/main.ts3
-rw-r--r--tests/testdata/jsr/module_graph/main.out7
-rw-r--r--tests/testdata/jsr/module_graph/main.ts3
-rw-r--r--tests/testdata/jsr/module_graph/main_info.out14
-rw-r--r--tests/testdata/jsr/no_module_graph/main.out6
-rw-r--r--tests/testdata/jsr/no_module_graph/main.ts4
-rw-r--r--tests/testdata/jsr/no_module_graph/main_info.out12
-rw-r--r--tests/testdata/jsr/no_module_graph/multiple.out2
-rw-r--r--tests/testdata/jsr/no_module_graph/multiple.ts5
-rw-r--r--tests/testdata/jsr/subset_type_graph/main.check.out45
-rw-r--r--tests/testdata/jsr/subset_type_graph/main.ts13
-rw-r--r--tests/testdata/jsr/version_not_found/main.out5
-rw-r--r--tests/testdata/jsr/version_not_found/main.ts2
-rw-r--r--tests/testdata/jupyter/install_command_not_exists.out5
-rw-r--r--tests/testdata/types/types.out3
26 files changed, 0 insertions, 198 deletions
diff --git a/tests/testdata/coverage/doesnt_exist.out b/tests/testdata/coverage/doesnt_exist.out
deleted file mode 100644
index 0b679bcb4..000000000
--- a/tests/testdata/coverage/doesnt_exist.out
+++ /dev/null
@@ -1 +0,0 @@
-error: No coverage files found
diff --git a/tests/testdata/jsr/deps/main.out b/tests/testdata/jsr/deps/main.out
deleted file mode 100644
index 621703c4b..000000000
--- a/tests/testdata/jsr/deps/main.out
+++ /dev/null
@@ -1,13 +0,0 @@
-Download http://127.0.0.1:4250/@denotest/deps/meta.json
-Download http://127.0.0.1:4250/@denotest/deps/1.0.0_meta.json
-Download http://127.0.0.1:4250/@denotest/module_graph/meta.json
-Download http://127.0.0.1:4250/@denotest/no_module_graph/meta.json
-Download http://127.0.0.1:4250/@denotest/module_graph/1.4.0_meta.json
-Download http://127.0.0.1:4250/@denotest/no_module_graph/0.1.1_meta.json
-[UNORDERED_START]
-Download http://127.0.0.1:4250/@denotest/deps/1.0.0/mod.ts
-Download http://127.0.0.1:4250/@denotest/module_graph/1.4.0/other.ts
-Download http://127.0.0.1:4250/@denotest/no_module_graph/0.1.1/mod.ts
-Download http://127.0.0.1:4250/@denotest/no_module_graph/0.1.1/TestClass.ts
-[UNORDERED_END]
-{ version: "0.1.1", other: Other {} }
diff --git a/tests/testdata/jsr/deps/main.ts b/tests/testdata/jsr/deps/main.ts
deleted file mode 100644
index f48255299..000000000
--- a/tests/testdata/jsr/deps/main.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import value from "jsr:@denotest/deps";
-
-console.log(value);
diff --git a/tests/testdata/jsr/deps/main_info.out b/tests/testdata/jsr/deps/main_info.out
deleted file mode 100644
index c4d412707..000000000
--- a/tests/testdata/jsr/deps/main_info.out
+++ /dev/null
@@ -1,22 +0,0 @@
-Download http://127.0.0.1:4250/@denotest/deps/meta.json
-Download http://127.0.0.1:4250/@denotest/deps/1.0.0_meta.json
-Download http://127.0.0.1:4250/@denotest/module_graph/meta.json
-Download http://127.0.0.1:4250/@denotest/no_module_graph/meta.json
-Download http://127.0.0.1:4250/@denotest/module_graph/1.4.0_meta.json
-Download http://127.0.0.1:4250/@denotest/no_module_graph/0.1.1_meta.json
-[UNORDERED_START]
-Download http://127.0.0.1:4250/@denotest/deps/1.0.0/mod.ts
-Download http://127.0.0.1:4250/@denotest/module_graph/1.4.0/other.ts
-Download http://127.0.0.1:4250/@denotest/no_module_graph/0.1.1/mod.ts
-Download http://127.0.0.1:4250/@denotest/no_module_graph/0.1.1/TestClass.ts
-[UNORDERED_END]
-local: [WILDCARD]main.ts
-type: TypeScript
-dependencies: 4 unique
-size: [WILDCARD]
-
-file:///[WILDCARD]main.ts ([WILDCARD])
-└─┬ http://127.0.0.1:4250/@denotest/deps/1.0.0/mod.ts ([WILDCARD])
- ├── http://127.0.0.1:4250/@denotest/module_graph/1.4.0/other.ts ([WILDCARD])
- └─┬ http://127.0.0.1:4250/@denotest/no_module_graph/0.1.1/mod.ts ([WILDCARD])
- └── http://127.0.0.1:4250/@denotest/no_module_graph/0.1.1/TestClass.ts ([WILDCARD])
diff --git a/tests/testdata/jsr/import_https_url/analyzable.out b/tests/testdata/jsr/import_https_url/analyzable.out
deleted file mode 100644
index dd1ca58b4..000000000
--- a/tests/testdata/jsr/import_https_url/analyzable.out
+++ /dev/null
@@ -1,8 +0,0 @@
-Download http://127.0.0.1:4250/@denotest/import-https-url/meta.json
-Download http://127.0.0.1:4250/@denotest/import-https-url/1.0.0_meta.json
-Download http://127.0.0.1:4250/@denotest/import-https-url/1.0.0/analyzable.ts
-Download http://localhost:4545/welcome.ts
-error: Uncaught (in promise) TypeError: Importing http://localhost:4545/welcome.ts blocked. JSR packages cannot import non-JSR remote modules for security reasons.
-await import("http://localhost:4545/welcome.ts");
-^
- at async http://127.0.0.1:4250/@denotest/import-https-url/1.0.0/analyzable.ts:1:1
diff --git a/tests/testdata/jsr/import_https_url/analyzable.ts b/tests/testdata/jsr/import_https_url/analyzable.ts
deleted file mode 100644
index 44382867f..000000000
--- a/tests/testdata/jsr/import_https_url/analyzable.ts
+++ /dev/null
@@ -1 +0,0 @@
-import "jsr:@denotest/import-https-url/analyzable";
diff --git a/tests/testdata/jsr/import_https_url/unanalyzable.out b/tests/testdata/jsr/import_https_url/unanalyzable.out
deleted file mode 100644
index 4ae04996c..000000000
--- a/tests/testdata/jsr/import_https_url/unanalyzable.out
+++ /dev/null
@@ -1,7 +0,0 @@
-Download http://127.0.0.1:4250/@denotest/import-https-url/meta.json
-Download http://127.0.0.1:4250/@denotest/import-https-url/1.0.0_meta.json
-Download http://127.0.0.1:4250/@denotest/import-https-url/1.0.0/unanalyzable.ts
-error: Uncaught (in promise) TypeError: Importing http://localhost:4545/welcome.ts blocked. JSR packages cannot import non-JSR remote modules for security reasons.
-await import(nonAnalyzableUrl());
-^
- at async http://127.0.0.1:4250/@denotest/import-https-url/1.0.0/unanalyzable.ts:5:1
diff --git a/tests/testdata/jsr/import_https_url/unanalyzable.ts b/tests/testdata/jsr/import_https_url/unanalyzable.ts
deleted file mode 100644
index 87ccdcfdc..000000000
--- a/tests/testdata/jsr/import_https_url/unanalyzable.ts
+++ /dev/null
@@ -1 +0,0 @@
-import "jsr:@denotest/import-https-url/unanalyzable";
diff --git a/tests/testdata/jsr/jsx_with_no_pragmas/main.out b/tests/testdata/jsr/jsx_with_no_pragmas/main.out
deleted file mode 100644
index c3977fe22..000000000
--- a/tests/testdata/jsr/jsx_with_no_pragmas/main.out
+++ /dev/null
@@ -1,7 +0,0 @@
-Download [WILDCARD]
-error: Uncaught (in promise) ReferenceError: React is not defined
- return renderToString(<div>foo.jsx</div>);
- ^
- at render (http://127.0.0.1:4250/@denotest/jsx-with-no-pragmas/1.0.0/foo.jsx:4:25)
- at render (http://127.0.0.1:4250/@denotest/jsx-with-no-pragmas/1.0.0/mod.ts:5:15)
- at file:///[WILDCARD]/jsr/jsx_with_no_pragmas/main.ts:3:1
diff --git a/tests/testdata/jsr/jsx_with_no_pragmas/main.ts b/tests/testdata/jsr/jsx_with_no_pragmas/main.ts
deleted file mode 100644
index 9d6e5a41e..000000000
--- a/tests/testdata/jsr/jsx_with_no_pragmas/main.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import { render } from "jsr:@denotest/jsx-with-no-pragmas@1.0.0";
-
-render();
diff --git a/tests/testdata/jsr/jsx_with_pragmas/main.out b/tests/testdata/jsr/jsx_with_pragmas/main.out
deleted file mode 100644
index c149ba010..000000000
--- a/tests/testdata/jsr/jsx_with_pragmas/main.out
+++ /dev/null
@@ -1,3 +0,0 @@
-Download [WILDCARD]
-<div>foo.jsx</div>
-<div>foo.tsx</div>
diff --git a/tests/testdata/jsr/jsx_with_pragmas/main.ts b/tests/testdata/jsr/jsx_with_pragmas/main.ts
deleted file mode 100644
index 4a38c56ad..000000000
--- a/tests/testdata/jsr/jsx_with_pragmas/main.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import { render } from "jsr:@denotest/jsx-with-pragmas@1.0.0";
-
-render();
diff --git a/tests/testdata/jsr/module_graph/main.out b/tests/testdata/jsr/module_graph/main.out
deleted file mode 100644
index 1cd0115b9..000000000
--- a/tests/testdata/jsr/module_graph/main.out
+++ /dev/null
@@ -1,7 +0,0 @@
-Download http://127.0.0.1:4250/@denotest/module_graph/meta.json
-Download http://127.0.0.1:4250/@denotest/module_graph/1.4.0_meta.json
-[UNORDERED_START]
-Download http://127.0.0.1:4250/@denotest/module_graph/1.4.0/other.ts
-Download http://127.0.0.1:4250/@denotest/module_graph/1.4.0/mod.ts
-[UNORDERED_END]
-Test { other: Other {} }
diff --git a/tests/testdata/jsr/module_graph/main.ts b/tests/testdata/jsr/module_graph/main.ts
deleted file mode 100644
index c92823cc2..000000000
--- a/tests/testdata/jsr/module_graph/main.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import { Test } from "jsr:@denotest/module_graph";
-
-console.log(new Test());
diff --git a/tests/testdata/jsr/module_graph/main_info.out b/tests/testdata/jsr/module_graph/main_info.out
deleted file mode 100644
index c35cca5b4..000000000
--- a/tests/testdata/jsr/module_graph/main_info.out
+++ /dev/null
@@ -1,14 +0,0 @@
-Download http://127.0.0.1:4250/@denotest/module_graph/meta.json
-Download http://127.0.0.1:4250/@denotest/module_graph/1.4.0_meta.json
-[UNORDERED_START]
-Download http://127.0.0.1:4250/@denotest/module_graph/1.4.0/mod.ts
-Download http://127.0.0.1:4250/@denotest/module_graph/1.4.0/other.ts
-[UNORDERED_END]
-local: [WILDCARD]main.ts
-type: TypeScript
-dependencies: 2 unique
-size: [WILDCARD]
-
-file:///[WILDCARD]/module_graph/main.ts ([WILDCARD])
-└─┬ http://127.0.0.1:4250/@denotest/module_graph/1.4.0/mod.ts ([WILDCARD])
- └── http://127.0.0.1:4250/@denotest/module_graph/1.4.0/other.ts ([WILDCARD])
diff --git a/tests/testdata/jsr/no_module_graph/main.out b/tests/testdata/jsr/no_module_graph/main.out
deleted file mode 100644
index da9b67e11..000000000
--- a/tests/testdata/jsr/no_module_graph/main.out
+++ /dev/null
@@ -1,6 +0,0 @@
-Download http://127.0.0.1:4250/@denotest/no_module_graph/meta.json
-Download http://127.0.0.1:4250/@denotest/no_module_graph/0.1.0_meta.json
-Download http://127.0.0.1:4250/@denotest/no_module_graph/0.1.0/mod.ts
-Download http://127.0.0.1:4250/@denotest/no_module_graph/0.1.0/TestClass.ts
-0.1.0
-TestClass {}
diff --git a/tests/testdata/jsr/no_module_graph/main.ts b/tests/testdata/jsr/no_module_graph/main.ts
deleted file mode 100644
index 6ea030c59..000000000
--- a/tests/testdata/jsr/no_module_graph/main.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-import version, { TestClass } from "jsr:@denotest/no_module_graph@0.1.0";
-
-console.log(version);
-console.log(new TestClass());
diff --git a/tests/testdata/jsr/no_module_graph/main_info.out b/tests/testdata/jsr/no_module_graph/main_info.out
deleted file mode 100644
index 0293e4120..000000000
--- a/tests/testdata/jsr/no_module_graph/main_info.out
+++ /dev/null
@@ -1,12 +0,0 @@
-Download http://127.0.0.1:4250/@denotest/no_module_graph/meta.json
-Download http://127.0.0.1:4250/@denotest/no_module_graph/0.1.0_meta.json
-Download http://127.0.0.1:4250/@denotest/no_module_graph/0.1.0/mod.ts
-Download http://127.0.0.1:4250/@denotest/no_module_graph/0.1.0/TestClass.ts
-local: [WILDCARD]main.ts
-type: TypeScript
-dependencies: 2 unique
-size: [WILDCARD]
-
-file:///[WILDCARD]/jsr/no_module_graph/main.ts ([WILDCARD])
-└─┬ http://127.0.0.1:4250/@denotest/no_module_graph/0.1.0/mod.ts ([WILDCARD])
- └── http://127.0.0.1:4250/@denotest/no_module_graph/0.1.0/TestClass.ts ([WILDCARD])
diff --git a/tests/testdata/jsr/no_module_graph/multiple.out b/tests/testdata/jsr/no_module_graph/multiple.out
deleted file mode 100644
index 8146276d0..000000000
--- a/tests/testdata/jsr/no_module_graph/multiple.out
+++ /dev/null
@@ -1,2 +0,0 @@
-0.1.0
-0.2.0
diff --git a/tests/testdata/jsr/no_module_graph/multiple.ts b/tests/testdata/jsr/no_module_graph/multiple.ts
deleted file mode 100644
index 660ed8be6..000000000
--- a/tests/testdata/jsr/no_module_graph/multiple.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-import version1 from "jsr:@denotest/no_module_graph@0.1.0";
-import version2 from "jsr:@denotest/no_module_graph@^0.2";
-
-console.log(version1);
-console.log(version2);
diff --git a/tests/testdata/jsr/subset_type_graph/main.check.out b/tests/testdata/jsr/subset_type_graph/main.check.out
deleted file mode 100644
index f46610c0a..000000000
--- a/tests/testdata/jsr/subset_type_graph/main.check.out
+++ /dev/null
@@ -1,45 +0,0 @@
-Download http://127.0.0.1:4250/@denotest/subset-type-graph/meta.json
-Download http://127.0.0.1:4250/@denotest/subset-type-graph-invalid/meta.json
-Download http://127.0.0.1:4250/@denotest/subset-type-graph/0.1.0_meta.json
-Download http://127.0.0.1:4250/@denotest/subset-type-graph-invalid/0.1.0_meta.json
-[UNORDERED_START]
-Download http://127.0.0.1:4250/@denotest/subset-type-graph/0.1.0/mod.ts
-Download http://127.0.0.1:4250/@denotest/subset-type-graph-invalid/0.1.0/mod.ts
-[UNORDERED_END]
-Check file:///[WILDCARD]/subset_type_graph/main.ts
-error: TS2322 [ERROR]: Type 'string' is not assignable to type 'number'.
-const invalidTypeCheck: number = "";
- ~~~~~~~~~~~~~~~~
- at http://127.0.0.1:4250/@denotest/subset-type-graph-invalid/0.1.0/mod.ts:11:7
-
-TS2322 [ERROR]: Type 'number' is not assignable to type 'string'.
-const error1: string = new Foo1().method();
- ~~~~~~
- at file:///[WILDCARD]/subset_type_graph/main.ts:5:7
-
-TS2322 [ERROR]: Type 'number' is not assignable to type 'string'.
-const error2: string = new Foo2().method();
- ~~~~~~
- at file:///[WILDCARD]/subset_type_graph/main.ts:6:7
-
-TS2551 [ERROR]: Property 'method2' does not exist on type 'Foo'. Did you mean 'method'?
-new Foo1().method2();
- ~~~~~~~
- at file:///[WILDCARD]/subset_type_graph/main.ts:12:12
-
- 'method' is declared here.
- method(): number {
- ~~~~~~
- at http://127.0.0.1:4250/@denotest/subset-type-graph/0.1.0/mod.ts:8:3
-
-TS2551 [ERROR]: Property 'method2' does not exist on type 'Foo'. Did you mean 'method'?
-new Foo2().method2();
- ~~~~~~~
- at file:///[WILDCARD]/subset_type_graph/main.ts:13:12
-
- 'method' is declared here.
- method() {
- ~~~~~~
- at http://127.0.0.1:4250/@denotest/subset-type-graph-invalid/0.1.0/mod.ts:2:3
-
-Found 5 errors.
diff --git a/tests/testdata/jsr/subset_type_graph/main.ts b/tests/testdata/jsr/subset_type_graph/main.ts
deleted file mode 100644
index 2fff966a7..000000000
--- a/tests/testdata/jsr/subset_type_graph/main.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import { Foo as Foo1 } from "jsr:@denotest/subset-type-graph@0.1.0";
-import { Foo as Foo2 } from "jsr:@denotest/subset-type-graph-invalid@0.1.0";
-
-// these will both raise type checking errors
-const error1: string = new Foo1().method();
-const error2: string = new Foo2().method();
-console.log(error1);
-console.log(error2);
-
-// now raise some errors that will show the original code and
-// these should source map to the original
-new Foo1().method2();
-new Foo2().method2();
diff --git a/tests/testdata/jsr/version_not_found/main.out b/tests/testdata/jsr/version_not_found/main.out
deleted file mode 100644
index 6a32b5d81..000000000
--- a/tests/testdata/jsr/version_not_found/main.out
+++ /dev/null
@@ -1,5 +0,0 @@
-Download http://127.0.0.1:4250/@denotest/deps/meta.json
-Download http://127.0.0.1:4250/@denotest/deps/meta.json
-error: Could not find constraint in the list of versions: @denotest/deps@0.1.4
- Specifier: jsr:@denotest/deps@0.1.4/mod.ts
- at file:///[WILDCARD]/version_not_found/main.ts:1:19
diff --git a/tests/testdata/jsr/version_not_found/main.ts b/tests/testdata/jsr/version_not_found/main.ts
deleted file mode 100644
index a7673b744..000000000
--- a/tests/testdata/jsr/version_not_found/main.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-import value from "jsr:@denotest/deps@0.1.4/mod.ts";
-console.log(value);
diff --git a/tests/testdata/jupyter/install_command_not_exists.out b/tests/testdata/jupyter/install_command_not_exists.out
deleted file mode 100644
index 1bb176e20..000000000
--- a/tests/testdata/jupyter/install_command_not_exists.out
+++ /dev/null
@@ -1,5 +0,0 @@
-Warning "deno jupyter" is unstable and might change in the future.
-error: Failed to spawn 'jupyter' command. Is JupyterLab installed (https://jupyter.org/install) and available on the PATH?
-
-Caused by:
-[WILDCARD]
diff --git a/tests/testdata/types/types.out b/tests/testdata/types/types.out
deleted file mode 100644
index 089a9381f..000000000
--- a/tests/testdata/types/types.out
+++ /dev/null
@@ -1,3 +0,0 @@
-[WILDCARD]
-declare namespace Deno [WILDCARD]
-declare var window: Window [WILDCARD]