summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/import_assertions
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/import_assertions')
-rw-r--r--cli/tests/testdata/import_assertions/data.json6
-rw-r--r--cli/tests/testdata/import_assertions/dynamic_error.out5
-rw-r--r--cli/tests/testdata/import_assertions/dynamic_error.ts3
-rw-r--r--cli/tests/testdata/import_assertions/dynamic_import.out2
-rw-r--r--cli/tests/testdata/import_assertions/dynamic_import.ts3
-rw-r--r--cli/tests/testdata/import_assertions/json_with_shebang.json4
-rw-r--r--cli/tests/testdata/import_assertions/json_with_shebang.ts3
-rw-r--r--cli/tests/testdata/import_assertions/json_with_shebang.ts.out1
-rw-r--r--cli/tests/testdata/import_assertions/static_error.out4
-rw-r--r--cli/tests/testdata/import_assertions/static_error.ts3
-rw-r--r--cli/tests/testdata/import_assertions/static_export.out2
-rw-r--r--cli/tests/testdata/import_assertions/static_export.ts3
-rw-r--r--cli/tests/testdata/import_assertions/static_import.out2
-rw-r--r--cli/tests/testdata/import_assertions/static_import.ts3
-rw-r--r--cli/tests/testdata/import_assertions/static_reexport.ts1
-rw-r--r--cli/tests/testdata/import_assertions/type_check.out5
-rw-r--r--cli/tests/testdata/import_assertions/type_check.ts3
17 files changed, 0 insertions, 53 deletions
diff --git a/cli/tests/testdata/import_assertions/data.json b/cli/tests/testdata/import_assertions/data.json
deleted file mode 100644
index 37b3ee1e0..000000000
--- a/cli/tests/testdata/import_assertions/data.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "a": "b",
- "c": {
- "d": 10
- }
-}
diff --git a/cli/tests/testdata/import_assertions/dynamic_error.out b/cli/tests/testdata/import_assertions/dynamic_error.out
deleted file mode 100644
index 927eae0b8..000000000
--- a/cli/tests/testdata/import_assertions/dynamic_error.out
+++ /dev/null
@@ -1,5 +0,0 @@
-[WILDCARD]
-error: Uncaught (in promise) TypeError: Expected a "JavaScriptOrWasm" module but loaded a "JSON" module.
-const data = await import("./data.json");
- ^
- at async [WILDCARD]dynamic_error.ts:1:14
diff --git a/cli/tests/testdata/import_assertions/dynamic_error.ts b/cli/tests/testdata/import_assertions/dynamic_error.ts
deleted file mode 100644
index 2d9c6757f..000000000
--- a/cli/tests/testdata/import_assertions/dynamic_error.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-const data = await import("./data.json");
-
-console.log(data);
diff --git a/cli/tests/testdata/import_assertions/dynamic_import.out b/cli/tests/testdata/import_assertions/dynamic_import.out
deleted file mode 100644
index 7a7b4c91f..000000000
--- a/cli/tests/testdata/import_assertions/dynamic_import.out
+++ /dev/null
@@ -1,2 +0,0 @@
-[WILDCARD]
-[Module: null prototype] { default: { a: "b", c: { d: 10 } } }
diff --git a/cli/tests/testdata/import_assertions/dynamic_import.ts b/cli/tests/testdata/import_assertions/dynamic_import.ts
deleted file mode 100644
index d6983852c..000000000
--- a/cli/tests/testdata/import_assertions/dynamic_import.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-const data = await import("./data.json", { assert: { type: "json" } });
-
-console.log(data);
diff --git a/cli/tests/testdata/import_assertions/json_with_shebang.json b/cli/tests/testdata/import_assertions/json_with_shebang.json
deleted file mode 100644
index b695e4457..000000000
--- a/cli/tests/testdata/import_assertions/json_with_shebang.json
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/env -S deno run
-{
- "test": null
-}
diff --git a/cli/tests/testdata/import_assertions/json_with_shebang.ts b/cli/tests/testdata/import_assertions/json_with_shebang.ts
deleted file mode 100644
index 523bf8772..000000000
--- a/cli/tests/testdata/import_assertions/json_with_shebang.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import json from "./json_with_shebang.json" assert { type: "json" };
-
-console.log(json);
diff --git a/cli/tests/testdata/import_assertions/json_with_shebang.ts.out b/cli/tests/testdata/import_assertions/json_with_shebang.ts.out
deleted file mode 100644
index 23eb03720..000000000
--- a/cli/tests/testdata/import_assertions/json_with_shebang.ts.out
+++ /dev/null
@@ -1 +0,0 @@
-error: Uncaught SyntaxError: Unexpected token '#', "#!/usr/env"... is not valid JSON
diff --git a/cli/tests/testdata/import_assertions/static_error.out b/cli/tests/testdata/import_assertions/static_error.out
deleted file mode 100644
index 4efdf8682..000000000
--- a/cli/tests/testdata/import_assertions/static_error.out
+++ /dev/null
@@ -1,4 +0,0 @@
-[WILDCARD]
-error: Expected a JavaScript or TypeScript module, but identified a Json module. Consider importing Json modules with an import assertion with the type of "json".
- Specifier: [WILDCARD]/data.json
- at [WILDCARD]static_error.ts:1:18
diff --git a/cli/tests/testdata/import_assertions/static_error.ts b/cli/tests/testdata/import_assertions/static_error.ts
deleted file mode 100644
index 0bc3a93f8..000000000
--- a/cli/tests/testdata/import_assertions/static_error.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import data from "./data.json";
-
-console.log(data);
diff --git a/cli/tests/testdata/import_assertions/static_export.out b/cli/tests/testdata/import_assertions/static_export.out
deleted file mode 100644
index 42fbc066c..000000000
--- a/cli/tests/testdata/import_assertions/static_export.out
+++ /dev/null
@@ -1,2 +0,0 @@
-[WILDCARD]
-{ a: "b", c: { d: 10 } }
diff --git a/cli/tests/testdata/import_assertions/static_export.ts b/cli/tests/testdata/import_assertions/static_export.ts
deleted file mode 100644
index ac3ee694f..000000000
--- a/cli/tests/testdata/import_assertions/static_export.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import data from "./static_reexport.ts";
-
-console.log(data);
diff --git a/cli/tests/testdata/import_assertions/static_import.out b/cli/tests/testdata/import_assertions/static_import.out
deleted file mode 100644
index 42fbc066c..000000000
--- a/cli/tests/testdata/import_assertions/static_import.out
+++ /dev/null
@@ -1,2 +0,0 @@
-[WILDCARD]
-{ a: "b", c: { d: 10 } }
diff --git a/cli/tests/testdata/import_assertions/static_import.ts b/cli/tests/testdata/import_assertions/static_import.ts
deleted file mode 100644
index 180ab75f2..000000000
--- a/cli/tests/testdata/import_assertions/static_import.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import data from "./data.json" assert { type: "json" };
-
-console.log(data);
diff --git a/cli/tests/testdata/import_assertions/static_reexport.ts b/cli/tests/testdata/import_assertions/static_reexport.ts
deleted file mode 100644
index 81af428be..000000000
--- a/cli/tests/testdata/import_assertions/static_reexport.ts
+++ /dev/null
@@ -1 +0,0 @@
-export { default } from "./data.json" assert { type: "json" };
diff --git a/cli/tests/testdata/import_assertions/type_check.out b/cli/tests/testdata/import_assertions/type_check.out
deleted file mode 100644
index 8e1387456..000000000
--- a/cli/tests/testdata/import_assertions/type_check.out
+++ /dev/null
@@ -1,5 +0,0 @@
-[WILDCARD]
-error: TS2339 [ERROR]: Property 'foo' does not exist on type '{ a: string; c: { d: number; }; }'.
-console.log(data.foo);
- ~~~
- at [WILDCARD]type_check.ts:3:18
diff --git a/cli/tests/testdata/import_assertions/type_check.ts b/cli/tests/testdata/import_assertions/type_check.ts
deleted file mode 100644
index 19adb3eae..000000000
--- a/cli/tests/testdata/import_assertions/type_check.ts
+++ /dev/null
@@ -1,3 +0,0 @@
-import data from "./data.json" assert { type: "json" };
-
-console.log(data.foo);