summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2021-07-20 18:29:17 +0900
committerGitHub <noreply@github.com>2021-07-20 18:29:17 +0900
commit65a1724acb039c6115d360f7a62248a7850d33b7 (patch)
treec111cc4e5fe7144e2313bfc2ba966fba26b240e1
parent55632266e9f84b456626d3536b4e2ee8365f600f (diff)
test(cli): add test case for 'deno test --watch' (#11434)
-rw-r--r--cli/flags.rs23
1 files changed, 23 insertions, 0 deletions
diff --git a/cli/flags.rs b/cli/flags.rs
index 8c7b0a9e7..f75aa5b22 100644
--- a/cli/flags.rs
+++ b/cli/flags.rs
@@ -3475,6 +3475,29 @@ mod tests {
}
#[test]
+ fn test_watch() {
+ let r = flags_from_vec(svec!["deno", "test", "--watch"]);
+ assert_eq!(
+ r.unwrap(),
+ Flags {
+ subcommand: DenoSubcommand::Test {
+ no_run: false,
+ doc: false,
+ fail_fast: None,
+ filter: None,
+ allow_none: false,
+ quiet: false,
+ shuffle: None,
+ include: None,
+ concurrent_jobs: 1,
+ },
+ watch: true,
+ ..Flags::default()
+ }
+ );
+ }
+
+ #[test]
fn bundle_with_cafile() {
let r = flags_from_vec(svec![
"deno",