summaryrefslogtreecommitdiff
path: root/tests/specs/test/test_with_malformed_config
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs/test/test_with_malformed_config')
-rw-r--r--tests/specs/test/test_with_malformed_config/__test__.jsonc5
-rw-r--r--tests/specs/test/test_with_malformed_config/deno.malformed.jsonc5
-rw-r--r--tests/specs/test/test_with_malformed_config/main.out4
3 files changed, 14 insertions, 0 deletions
diff --git a/tests/specs/test/test_with_malformed_config/__test__.jsonc b/tests/specs/test/test_with_malformed_config/__test__.jsonc
new file mode 100644
index 000000000..56c30bce6
--- /dev/null
+++ b/tests/specs/test/test_with_malformed_config/__test__.jsonc
@@ -0,0 +1,5 @@
+{
+ "args": "test --config deno.malformed.jsonc",
+ "exitCode": 1,
+ "output": "main.out"
+}
diff --git a/tests/specs/test/test_with_malformed_config/deno.malformed.jsonc b/tests/specs/test/test_with_malformed_config/deno.malformed.jsonc
new file mode 100644
index 000000000..f2d8cbc65
--- /dev/null
+++ b/tests/specs/test/test_with_malformed_config/deno.malformed.jsonc
@@ -0,0 +1,5 @@
+{
+ "test": {
+ "dont_know_this_field": {}
+ }
+}
diff --git a/tests/specs/test/test_with_malformed_config/main.out b/tests/specs/test/test_with_malformed_config/main.out
new file mode 100644
index 000000000..b31b18e6a
--- /dev/null
+++ b/tests/specs/test/test_with_malformed_config/main.out
@@ -0,0 +1,4 @@
+error: Failed to parse "test" configuration
+
+Caused by:
+ unknown field `dont_know_this_field`, expected one of `include`, `exclude`, `files`