diff options
-rw-r--r-- | cli/ops/testing.rs | 2 | ||||
-rw-r--r-- | cli/tests/unit/testing_test.ts | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/cli/ops/testing.rs b/cli/ops/testing.rs index e36d7e611..3f9ade7c9 100644 --- a/cli/ops/testing.rs +++ b/cli/ops/testing.rs @@ -100,7 +100,9 @@ struct TestInfo<'s> { #[serde(rename = "fn")] function: serde_v8::Value<'s>, name: String, + #[serde(default)] ignore: bool, + #[serde(default)] only: bool, location: TestLocation, } diff --git a/cli/tests/unit/testing_test.ts b/cli/tests/unit/testing_test.ts index 4e28d545c..52e3baa13 100644 --- a/cli/tests/unit/testing_test.ts +++ b/cli/tests/unit/testing_test.ts @@ -147,3 +147,8 @@ Deno.test(async function parentOnTextContext(t1) { }); }); }); + +Deno.test("explicit undefined for boolean options", { + ignore: undefined, + only: undefined, +}, () => {}); |