summaryrefslogtreecommitdiff
path: root/tests/testdata/cache
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testdata/cache')
-rw-r--r--tests/testdata/cache/036_import_map_fetch.out0
-rw-r--r--tests/testdata/cache/037_fetch_multiple.out5
-rw-r--r--tests/testdata/cache/095_cache_with_bare_import.ts1
-rw-r--r--tests/testdata/cache/095_cache_with_bare_import.ts.out2
-rw-r--r--tests/testdata/cache/cache_extensionless.out2
-rw-r--r--tests/testdata/cache/cache_random_extension.out2
-rw-r--r--tests/testdata/cache/check_local_by_default.out0
-rw-r--r--tests/testdata/cache/check_local_by_default.ts3
-rw-r--r--tests/testdata/cache/check_local_by_default2.out0
-rw-r--r--tests/testdata/cache/check_local_by_default2.ts6
-rw-r--r--tests/testdata/cache/ignore_require.js2
-rw-r--r--tests/testdata/cache/json_import/main.ts2
-rw-r--r--tests/testdata/cache/json_import/test.json5
-rw-r--r--tests/testdata/cache/performance_stats.out16
-rw-r--r--tests/testdata/cache/redirect_cache.out5
15 files changed, 51 insertions, 0 deletions
diff --git a/tests/testdata/cache/036_import_map_fetch.out b/tests/testdata/cache/036_import_map_fetch.out
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/tests/testdata/cache/036_import_map_fetch.out
diff --git a/tests/testdata/cache/037_fetch_multiple.out b/tests/testdata/cache/037_fetch_multiple.out
new file mode 100644
index 000000000..f4c0c314b
--- /dev/null
+++ b/tests/testdata/cache/037_fetch_multiple.out
@@ -0,0 +1,5 @@
+Download http://localhost:4545/subdir/mod2.ts
+Download http://localhost:4545/subdir/mt_text_typescript.t1.ts
+Download http://localhost:4545/subdir/print_hello.ts
+Check [WILDCARD]/fetch/test.ts
+Check [WILDCARD]/fetch/other.ts
diff --git a/tests/testdata/cache/095_cache_with_bare_import.ts b/tests/testdata/cache/095_cache_with_bare_import.ts
new file mode 100644
index 000000000..c0748305d
--- /dev/null
+++ b/tests/testdata/cache/095_cache_with_bare_import.ts
@@ -0,0 +1 @@
+import "foo";
diff --git a/tests/testdata/cache/095_cache_with_bare_import.ts.out b/tests/testdata/cache/095_cache_with_bare_import.ts.out
new file mode 100644
index 000000000..2668a6e08
--- /dev/null
+++ b/tests/testdata/cache/095_cache_with_bare_import.ts.out
@@ -0,0 +1,2 @@
+[WILDCARD]error: Relative import path "foo" not prefixed with / or ./ or ../
+ at file:///[WILDCARD]/095_cache_with_bare_import.ts:[WILDCARD]
diff --git a/tests/testdata/cache/cache_extensionless.out b/tests/testdata/cache/cache_extensionless.out
new file mode 100644
index 000000000..3694c67cb
--- /dev/null
+++ b/tests/testdata/cache/cache_extensionless.out
@@ -0,0 +1,2 @@
+[WILDCARD]
+Check http://localhost:4545/subdir/no_js_ext
diff --git a/tests/testdata/cache/cache_random_extension.out b/tests/testdata/cache/cache_random_extension.out
new file mode 100644
index 000000000..745a2e0e3
--- /dev/null
+++ b/tests/testdata/cache/cache_random_extension.out
@@ -0,0 +1,2 @@
+[WILDCARD]
+Check http://localhost:4545/subdir/no_js_ext@1.0.0
diff --git a/tests/testdata/cache/check_local_by_default.out b/tests/testdata/cache/check_local_by_default.out
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/tests/testdata/cache/check_local_by_default.out
diff --git a/tests/testdata/cache/check_local_by_default.ts b/tests/testdata/cache/check_local_by_default.ts
new file mode 100644
index 000000000..2ae8c2692
--- /dev/null
+++ b/tests/testdata/cache/check_local_by_default.ts
@@ -0,0 +1,3 @@
+import * as a from "http://localhost:4545/subdir/type_error.ts";
+
+console.log(a.a);
diff --git a/tests/testdata/cache/check_local_by_default2.out b/tests/testdata/cache/check_local_by_default2.out
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/tests/testdata/cache/check_local_by_default2.out
diff --git a/tests/testdata/cache/check_local_by_default2.ts b/tests/testdata/cache/check_local_by_default2.ts
new file mode 100644
index 000000000..5177ff944
--- /dev/null
+++ b/tests/testdata/cache/check_local_by_default2.ts
@@ -0,0 +1,6 @@
+import * as a from "http://localhost:4545/subdir/type_error.ts";
+
+const b: "b" = 12;
+
+console.log(a.a);
+console.log(b);
diff --git a/tests/testdata/cache/ignore_require.js b/tests/testdata/cache/ignore_require.js
new file mode 100644
index 000000000..a8ef15021
--- /dev/null
+++ b/tests/testdata/cache/ignore_require.js
@@ -0,0 +1,2 @@
+// deno-lint-ignore-file
+require("invalid module specifier");
diff --git a/tests/testdata/cache/json_import/main.ts b/tests/testdata/cache/json_import/main.ts
new file mode 100644
index 000000000..78273558f
--- /dev/null
+++ b/tests/testdata/cache/json_import/main.ts
@@ -0,0 +1,2 @@
+import asdf from "./test.json" assert { type: "json" };
+console.log(asdf);
diff --git a/tests/testdata/cache/json_import/test.json b/tests/testdata/cache/json_import/test.json
new file mode 100644
index 000000000..258849a68
--- /dev/null
+++ b/tests/testdata/cache/json_import/test.json
@@ -0,0 +1,5 @@
+{
+ "foo": {
+ "bar": 1
+ }
+}
diff --git a/tests/testdata/cache/performance_stats.out b/tests/testdata/cache/performance_stats.out
new file mode 100644
index 000000000..141829ee6
--- /dev/null
+++ b/tests/testdata/cache/performance_stats.out
@@ -0,0 +1,16 @@
+[WILDCARD]
+DEBUG RS - [WILDCARD] - Compilation statistics:
+ Files: [WILDCARD]
+ Nodes: [WILDCARD]
+ Identifiers: [WILDCARD]
+ Symbols: [WILDCARD]
+ Types: [WILDCARD]
+ Instantiations: [WILDCARD]
+ Parse time: [WILDCARD]
+ Bind time: [WILDCARD]
+ Check time: [WILDCARD]
+ Emit time: [WILDCARD]
+ Total TS time: [WILDCARD]
+ Compile time: [WILDCARD]
+
+[WILDCARD]
diff --git a/tests/testdata/cache/redirect_cache.out b/tests/testdata/cache/redirect_cache.out
new file mode 100644
index 000000000..8905c4529
--- /dev/null
+++ b/tests/testdata/cache/redirect_cache.out
@@ -0,0 +1,5 @@
+Download http://localhost:4548/subdir/redirects/a.ts
+Download http://localhost:4546/subdir/redirects/a.ts
+Download http://localhost:4545/subdir/redirects/a.ts
+Download http://localhost:4545/subdir/redirects/b.ts
+Check http://localhost:4548/subdir/redirects/a.ts