summaryrefslogtreecommitdiff
path: root/tests/specs/cache/json_import
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-04-29 10:08:27 -0400
committerGitHub <noreply@github.com>2024-04-29 10:08:27 -0400
commitda52058a945999d486b07700d2834f027a65947c (patch)
treeb6031c274cbc36dcefc6d681473e366cdb208c89 /tests/specs/cache/json_import
parentb02ffec37c73be8a73b95b33b32efa693e84e01b (diff)
chore: migrate bench, publish, and more itests to spec tests (#23584)
Diffstat (limited to 'tests/specs/cache/json_import')
-rw-r--r--tests/specs/cache/json_import/__test__.jsonc5
-rw-r--r--tests/specs/cache/json_import/main.ts2
-rw-r--r--tests/specs/cache/json_import/test.json5
3 files changed, 12 insertions, 0 deletions
diff --git a/tests/specs/cache/json_import/__test__.jsonc b/tests/specs/cache/json_import/__test__.jsonc
new file mode 100644
index 000000000..fdc3459c3
--- /dev/null
+++ b/tests/specs/cache/json_import/__test__.jsonc
@@ -0,0 +1,5 @@
+{
+ // should not error
+ "args": "cache --quiet main.ts",
+ "output": "[WILDCARD]"
+}
diff --git a/tests/specs/cache/json_import/main.ts b/tests/specs/cache/json_import/main.ts
new file mode 100644
index 000000000..78273558f
--- /dev/null
+++ b/tests/specs/cache/json_import/main.ts
@@ -0,0 +1,2 @@
+import asdf from "./test.json" assert { type: "json" };
+console.log(asdf);
diff --git a/tests/specs/cache/json_import/test.json b/tests/specs/cache/json_import/test.json
new file mode 100644
index 000000000..258849a68
--- /dev/null
+++ b/tests/specs/cache/json_import/test.json
@@ -0,0 +1,5 @@
+{
+ "foo": {
+ "bar": 1
+ }
+}