summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/cache
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/cache')
-rw-r--r--cli/tests/testdata/cache/036_import_map_fetch.out0
-rw-r--r--cli/tests/testdata/cache/037_fetch_multiple.out5
-rw-r--r--cli/tests/testdata/cache/095_cache_with_bare_import.ts1
-rw-r--r--cli/tests/testdata/cache/095_cache_with_bare_import.ts.out2
-rw-r--r--cli/tests/testdata/cache/cache_extensionless.out2
-rw-r--r--cli/tests/testdata/cache/cache_random_extension.out2
-rw-r--r--cli/tests/testdata/cache/ignore_require.js2
-rw-r--r--cli/tests/testdata/cache/performance_stats.out16
-rw-r--r--cli/tests/testdata/cache/redirect_cache.out5
9 files changed, 35 insertions, 0 deletions
diff --git a/cli/tests/testdata/cache/036_import_map_fetch.out b/cli/tests/testdata/cache/036_import_map_fetch.out
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/cli/tests/testdata/cache/036_import_map_fetch.out
diff --git a/cli/tests/testdata/cache/037_fetch_multiple.out b/cli/tests/testdata/cache/037_fetch_multiple.out
new file mode 100644
index 000000000..09c6c0f60
--- /dev/null
+++ b/cli/tests/testdata/cache/037_fetch_multiple.out
@@ -0,0 +1,5 @@
+Download http://localhost:4545/subdir/mod2.ts
+Download http://localhost:4545/subdir/print_hello.ts
+Check [WILDCARD]/fetch/test.ts
+Download http://localhost:4545/subdir/mt_text_typescript.t1.ts
+Check [WILDCARD]/fetch/other.ts
diff --git a/cli/tests/testdata/cache/095_cache_with_bare_import.ts b/cli/tests/testdata/cache/095_cache_with_bare_import.ts
new file mode 100644
index 000000000..c0748305d
--- /dev/null
+++ b/cli/tests/testdata/cache/095_cache_with_bare_import.ts
@@ -0,0 +1 @@
+import "foo";
diff --git a/cli/tests/testdata/cache/095_cache_with_bare_import.ts.out b/cli/tests/testdata/cache/095_cache_with_bare_import.ts.out
new file mode 100644
index 000000000..2668a6e08
--- /dev/null
+++ b/cli/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/cli/tests/testdata/cache/cache_extensionless.out b/cli/tests/testdata/cache/cache_extensionless.out
new file mode 100644
index 000000000..3694c67cb
--- /dev/null
+++ b/cli/tests/testdata/cache/cache_extensionless.out
@@ -0,0 +1,2 @@
+[WILDCARD]
+Check http://localhost:4545/subdir/no_js_ext
diff --git a/cli/tests/testdata/cache/cache_random_extension.out b/cli/tests/testdata/cache/cache_random_extension.out
new file mode 100644
index 000000000..745a2e0e3
--- /dev/null
+++ b/cli/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/cli/tests/testdata/cache/ignore_require.js b/cli/tests/testdata/cache/ignore_require.js
new file mode 100644
index 000000000..a8ef15021
--- /dev/null
+++ b/cli/tests/testdata/cache/ignore_require.js
@@ -0,0 +1,2 @@
+// deno-lint-ignore-file
+require("invalid module specifier");
diff --git a/cli/tests/testdata/cache/performance_stats.out b/cli/tests/testdata/cache/performance_stats.out
new file mode 100644
index 000000000..141829ee6
--- /dev/null
+++ b/cli/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/cli/tests/testdata/cache/redirect_cache.out b/cli/tests/testdata/cache/redirect_cache.out
new file mode 100644
index 000000000..8905c4529
--- /dev/null
+++ b/cli/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